Ejemplo n.º 1
0
        public void ModifiedLogisticTest()
        {
            float value    = 0F;
            float expected = 0F;
            float actual;

            actual = SigmoidFunctions.ModifiedLogistic(value);
            Assert.AreEqual(expected, actual, 0.01f);
        }
Ejemplo n.º 2
0
        public void HyperbolicTangentTest()
        {
            float value    = 0F;
            float expected = 0F;
            float actual;

            actual = SigmoidFunctions.HyperbolicTangent(value);
            Assert.AreEqual(expected, actual, 0.01f);
        }
Ejemplo n.º 3
0
        public void GeneralizedLogisticTest1()
        {
            float value    = 0F;
            float expected = 0.3991F;
            float actual;

            actual = SigmoidFunctions.GeneralizedLogistic(value);
            Assert.AreEqual(expected, actual, 0.01f);
        }
Ejemplo n.º 4
0
        public void SimpleAlgebraTest()
        {
            float value    = 0F;
            float expected = 0F;
            float actual;

            actual = SigmoidFunctions.SimpleAlgebra(value);
            Assert.AreEqual(expected, actual, 0.01f);
        }
Ejemplo n.º 5
0
        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);
        }