コード例 #1
0
        private float Operation(Recursion recursion)
        {
            float inputValue           = Mathf.Clamp01(input.GetValue <float>(recursion));
            float inflectionPointValue = Mathf.Clamp01(inflectionPoint.GetValue <float>(recursion));

            return(MathLibrary.DecayingSigmoid(inputValue, inflectionPointValue, minimum.GetValue <float>(), decayFactor.GetValue <float>(), scale.GetValue <float>()));
        }
コード例 #2
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)));
        }
コード例 #3
0
 private float Operation(Flow flow)
 {
     return(MathLibrary.LinearFunctionOfRange(
                flow.GetValue <float>(input),
                flow.GetValue <float>(minInputRange),
                flow.GetValue <float>(maxInputRange), flow.GetValue <float>(minimum), flow.GetValue <float>(maximum)));
 }
コード例 #4
0
        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>()));
        }
コード例 #5
0
 private float Operation(Recursion recursion)
 {
     return(MathLibrary.LinearFunctionOfRange(
                input.GetValue <float>(),
                minInputRange.GetValue <float>(),
                maxInputRange.GetValue <float>(), minimum.GetValue <float>(), maximum.GetValue <float>()));
 }
コード例 #6
0
        private float Operation(Flow flow)
        {
            float inputValue           = Mathf.Clamp01(flow.GetValue <float>(input));
            float inflectionPointValue = Mathf.Clamp01(flow.GetValue <float>(inflectionPoint));

            return(MathLibrary.DecayingSigmoid(inputValue, inflectionPointValue, flow.GetValue <float>(minimum), flow.GetValue <float>(decayFactor), flow.GetValue <float>(scale)));
        }
コード例 #7
0
 private float Operation(Recursion recursion)
 {
     return(MathLibrary.LinearFunction(minimum.GetValue <float>(recursion), maximum.GetValue <float>(recursion), input.GetValue <float>(recursion)));
 }
コード例 #8
0
 private float Operation(Recursion recursion)
 {
     return(MathLibrary.ExponentialFunction(input.GetValue <float>(), minimum.GetValue <float>(), exponent.GetValue <float>(), scale.GetValue <float>()));
 }
コード例 #9
0
 private float Operation(Flow flow)
 {
     return(MathLibrary.LogarithmicFunctionOfRange(flow.GetValue <float>(input), flow.GetValue <float>(minimumRange), flow.GetValue <float>(maximumRange), flow.GetValue <float>(maximumRange), flow.GetValue <float>(exponent), flow.GetValue <float>(scale)));
 }
コード例 #10
0
 private float Operation(Flow flow)
 {
     return(MathLibrary.ReverseLinearFunction(flow.GetValue <float>(minimum), flow.GetValue <float>(maximum), flow.GetValue <float>(input)));
 }
コード例 #11
0
 private float Operation(Flow flow)
 {
     return(MathLibrary.DecayFunction(flow.GetValue <float>(input), flow.GetValue <float>(minimum), flow.GetValue <float>(decayFactor), flow.GetValue <float>(scale)));
 }
コード例 #12
0
 private float Operation(Recursion recursion)
 {
     return(MathLibrary.DecayFunction(input.GetValue <float>(), minimum.GetValue <float>(), decayFactor.GetValue <float>(), scale.GetValue <float>()));
 }
コード例 #13
0
 private float Operation(Flow flow)
 {
     return(MathLibrary.ExponentialFunction(flow.GetValue <float>(input), flow.GetValue <float>(minimum), flow.GetValue <float>(exponent), flow.GetValue <float>(scale)));
 }
コード例 #14
0
 private float Operation(Recursion recursion)
 {
     return(MathLibrary.LogarithmicFunctionOfRange(input.GetValue <float>(), minimumRange.GetValue <float>(), maximumRange.GetValue <float>(), maximumRange.GetValue <float>(), exponent.GetValue <float>(), scale.GetValue <float>()));
 }