Ejemplo n.º 1
0
        private float Operation(Flow flow)
        {
            float normalizedInput      = MathLibrary.ReverseLinearFunction(flow.GetValue <float>(input), flow.GetValue <float>(minimumRange), flow.GetValue <float>(maximumRange));
            float normalizedInflection = MathLibrary.ReverseLinearFunction(flow.GetValue <float>(inflectionPoint), flow.GetValue <float>(minimumRange), flow.GetValue <float>(maximumRange));

            return(MathLibrary.DecayingSigmoid(normalizedInput, normalizedInflection, flow.GetValue <float>(minimum), flow.GetValue <float>(decayFactor), flow.GetValue <float>(scale)));
        }
        private float Operation(Recursion recursion)
        {
            float normalizedInput      = MathLibrary.ReverseLinearFunction(input.GetValue <float>(), minimumRange.GetValue <float>(), maximumRange.GetValue <float>());
            float normalizedInflection = MathLibrary.ReverseLinearFunction(inflectionPoint.GetValue <float>(), minimumRange.GetValue <float>(), maximumRange.GetValue <float>());

            return(MathLibrary.DecayingSigmoid(normalizedInput, normalizedInflection, minimum.GetValue <float>(), decayFactor.GetValue <float>(), scale.GetValue <float>()));
        }
 private float Operation(Flow flow)
 {
     return(MathLibrary.ReverseLinearFunction(flow.GetValue <float>(minimum), flow.GetValue <float>(maximum), flow.GetValue <float>(input)));
 }
Ejemplo n.º 4
0
 private float Operation(Recursion recursion)
 {
     return(MathLibrary.ReverseLinearFunction(minimum.GetValue <float>(recursion), maximum.GetValue <float>(recursion), input.GetValue <float>(recursion)));
 }