Package sets

Examples of sets.NumberSet


    }
    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;
    }
View Full Code Here

TOP

Related Classes of sets.NumberSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.