Exemple #1
0
        public void CalculateOutput_InputLargerThanTreshold_OneReturned()
        {
            var stepFunction = new StepActivationFunction(111);

            Assert.AreEqual(1, stepFunction.CalculateOutput(112));
        }
Exemple #2
0
        public void CalculateOutput_InputSmallerThanTreshold_ZeroReturned()
        {
            var stepFunction = new StepActivationFunction(111);

            Assert.AreEqual(0, stepFunction.CalculateOutput(110));
        }