示例#1
0
        public void ModeTest()
        {
            //arrange
            double[] v        = new double[] { 1, 2, 2, 3, 6, 8, 8, 8, 9 };
            double   expected = 8.0;

            //action
            double actual = MathStats.Mode(v);

            //assert
            actual.Should().Be(expected);
        }
 public override object Evaluate()
 {
     return((Complex)MathStats.Mode(SubExpression.EvaluateAsCMatrix()));
 }