}
else
{
final double resolutionFactor = 2.0;
final PAA shrunkI = new PAA(tsI, (int)(tsI.size()/resolutionFactor));
final PAA shrunkJ = new PAA(tsJ, (int)(tsJ.size()/resolutionFactor));
// Determine the search window that constrains the area of the cost matrix that will be evaluated based on
// the warp path found at the previous resolution (smaller time series).
final SearchWindow window = new ExpandedResWindow(tsI, tsJ, shrunkI, shrunkJ,
FastDTW.getWarpPathBetween(shrunkI, shrunkJ, searchRadius, distFn),