public void GeneralizedLogisticTest1() { float value = 0F; float expected = 0.3991F; float actual; actual = SigmoidFunctions.GeneralizedLogistic(value); Assert.AreEqual(expected, actual, 0.01f); }
public void GeneralizedLogisticTest() { float upperAsymptote = 1F; float lowerAsymptote = -1F; float growthRate = 1F; float v = 0.5F; float M = 0.5F; float value = 0F; float expected = 0.3991F; float actual; actual = SigmoidFunctions.GeneralizedLogistic(upperAsymptote, lowerAsymptote, growthRate, v, M, value); Assert.AreEqual(expected, actual, 0.01f); }