}
ArrayList<ConsCell> list = input.splitOnSeparator();
BigDec[] items = new BigDec[list.size()];
for (int i = 0; i < items.length; i++)
items[i] = new BigDec(parser.run(list.get(i)).toString());
NumberSet set = new NumberSet(items);
try {
if (operation.equals("mean"))
return new ConsCell(set.getMean(), ConsType.NUMBER);
if (operation.equals("median"))
return new ConsCell(set.getMedian(), ConsType.NUMBER);
if (operation.equals("mode"))
return new ConsCell(set.getMode(), ConsType.NUMBER);
if (operation.equals("stdev"))
return new ConsCell(set.getSTDEV(1), ConsType.NUMBER);
if (operation.equals("zScore"))
return new ConsCell(set.getzScore(extra), ConsType.NUMBER);
if (operation.equals("iqr"))
return new ConsCell(set.getIQR(), ConsType.NUMBER);
}
catch (ParserException e) {
e.setThrower(this);
throw e;
}