final int[] rejectedDates = new int[n];
final double[] rejectedData = new double[n];
final LocalDateDoubleEntryIterator it = ts.iterator();
int i = 0, j = 0;
while (it.hasNext()) {
int date = it.nextTimeFast();
double value = it.currentValue();
if (Math.abs(value - mean) > _standardDeviations * std) {
rejectedDates[j] = date;
rejectedData[j++] = value;
} else {