Package com.independentsoft.calc.functions

# Class StatOps

java.lang.Object
com.independentsoft.calc.functions.StatOps

public final class StatOps extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static CalcValue`
  `collectPairs​(CalcValue argX, CalcValue argY, EvalContext ctx, List<Double> xs, List<Double> ys)`
  `static double`
  `max​(List<Double> v)`
  `static double`
  `mean​(List<Double> v)`
  `static double`
  `median​(List<Double> v)`
  `static double`
  `min​(List<Double> v)`
  `static boolean`
  `tryMode​(List<Double> v, OutDouble mode)`
  `static boolean`
  `tryPercentile​(List<Double> data, double p, boolean exclusive, OutDouble result)`
  `static double`
  `variance​(List<Double> v, boolean sample)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### mean

    public static double mean​(List<Double> v)

  - ### max

    public static double max​(List<Double> v)

  - ### min

    public static double min​(List<Double> v)

  - ### variance

    public static double variance​(List<Double> v, boolean sample)

  - ### median

    public static double median​(List<Double> v)

  - ### tryMode

    public static boolean tryMode​(List<Double> v, OutDouble mode)

  - ### tryPercentile

    public static boolean tryPercentile​(List<Double> data, double p, boolean exclusive, OutDouble result)

  - ### collectPairs

    public static CalcValue collectPairs​(CalcValue argX, CalcValue argY, EvalContext ctx, List<Double> xs, List<Double> ys)