public void testStandardDeviationBiased() { var zScoreSpud = new ZScoreSpud(values, 250, true); indicator = zScoreSpud; addPoint(3); addPoint(7); AlmostEqual(2, zScoreSpud.standardDeviation(), 1e-6); addPoint(7); AlmostEqual(1.885618, zScoreSpud.standardDeviation(), 1e-6); }
public void testStandardDeviationUnbiased() { var zScoreSpud = new ZScoreSpud(values, 250, false); indicator = zScoreSpud; addPoint(3); addPoint(7); AlmostEqual(2.828427, zScoreSpud.standardDeviation(), 1e-6); addPoint(7); AlmostEqual(2.309401, zScoreSpud.standardDeviation(), 1e-6); }