Map.Entry<Long,double[]> secondMostRecent =
timestampToVector.lowerEntry(mostRecent.getKey());
// Skip calculating the shift for words where the two most recent
// partitoins aren't contiguous. Check for this using the custom
// time span that covers two partitions
if (!twoPartitions.insideRange(secondMostRecent.getKey(),
mostRecent.getKey()))
continue;
// Compute the semantic shift of the two partitions