public void TwoNumberTest() { var exp = new Stdevp(new[] { new Number(4), new Number(9) }); var result = (double)exp.Execute(); Assert.Equal(2.5, result, 14); }
public void VectorTest() { var exp = new Stdevp(new[] { new Vector(new[] { new Number(2), new Number(4), new Number(9) }) }); var result = (double)exp.Execute(); Assert.Equal(2.94392028877595, result, 14); }
public void OneNumberTest() { var exp = new Stdevp(new[] { new Number(4) }); var result = (double)exp.Execute(); Assert.Equal(0.0, result); }
public void TwoNumberTest() { var exp = new Stdevp(new[] { new Number(4), new Number(9) }, 2); var result = (double)exp.Execute(); Assert.Equal(2.5, result, 14); }
public void ThreeNumberTest() { var exp = new Stdevp(new[] { new Number(9), new Number(2), new Number(4) }, 3); var result = (double)exp.Execute(); Assert.Equal(2.94392028877595, result, 14); }
public void OneNumberTest() { var exp = new Stdevp(new[] { new Number(4) }, 1); var result = (double)exp.Execute(); Assert.Equal(0.0, result); }
public void VectorTest() { var exp = new Stdevp(new[] { new Vector(new[] { new Number(2), new Number(4), new Number(9) }) }, 1); var result = (double)exp.Execute(); Assert.Equal(2.94392028877595, result, 14); }