Beispiel #1
0
        public void ItShouldMultiplyIntegersCorrectly()
        {
            // arrange
            var a = 5;
            var b = 2;
            var expectedResult = 10;

            // act
            var result = _mathEngine.Multiply(a, b);

            // assert
            Assert.AreEqual(expectedResult, result, $"Multiplying integers { a } * { b } should equal { expectedResult }, yet yielded { result }.");
        }
Beispiel #2
0
        public float[] Calculate(float[] input)
        {
            var result = _mathEngine.Multiply(input, _synopsisMap.GetWMaps(), ActivationFunction);

            result = _mathEngine.ApplyIntegralFunction(result, ActivationFunction);
            return(result);
        }