Esempio n. 1
0
 protected internal override double Evaluate(double[] values)
 {
     if (values.Length < 1)
     {
         throw new EvaluationException(ErrorEval.DIV_ZERO);
     }
     return(StatsLib.varp(values));
 }
Esempio n. 2
0
        protected internal override double Evaluate(double[] ops)
        {
            if (ops.Length < 2)
            {
                throw new EvaluationException(ErrorEval.NUM_ERROR);
            }
            double[] values = new double[ops.Length - 1];
            int      k      = (int)ops[ops.Length - 1];

            System.Array.Copy(ops, 0, values, 0, values.Length);
            return(StatsLib.kthLargest(values, k));
        }
Esempio n. 3
0
 protected internal override double Evaluate(double[] values)
 {
     return(StatsLib.median(values));
 }