示例#1
0
        public override float GetOutput(TupleList <float, float> inputs)
        {
            float  sum = inputs.WeightedSum();
            double x   = coefficients['x'].coValue;

            return((float)Math.Sqrt(sum * x));
        }
示例#2
0
        public override float GetOutput(TupleList <float, float> inputs)
        {
            double a = coefficients['a'].coValue;
            double b = coefficients['b'].coValue;
            float  x = inputs.WeightedSum();

            return((float)(a * x + b));
        }
示例#3
0
        public override float GetOutput(TupleList <float, float> inputs)
        {
            float sum = inputs.WeightedSum();
            float x   = 1.0f;
            float y   = .0f;
            float mod = 1.0f;

            return((x * sum + y) % mod);
        }
示例#4
0
        public override float GetOutput(TupleList <float, float> inputs)
        {
            float  sum = inputs.WeightedSum();
            double a   = coefficients['a'].coValue;
            double b   = coefficients['b'].coValue;
            double c   = coefficients['c'].coValue;
            double d   = coefficients['d'].coValue;

            return((float)(a * Math.Sin(Math.Pow(c * sum, d)) + b));
        }
示例#5
0
        public override float GetOutput(TupleList <float, float> inputs)
        {
            float x   = 1.0f;
            float y   = .0f;
            float z   = 1.0001f;
            float w   = 1.0f;
            float sum = (float)Math.Abs(((double)inputs.WeightedSum()).Clamp((-z + 0.00009), (z - 0.00009)));

            return(Math.Abs((w - (sum % z)) * x) + y);
        }
示例#6
0
        public override float GetOutput(TupleList <float, float> inputs)
        {
            var sum = inputs.WeightedSum();
            var a   = coefficients['a'].coValue;
            var b   = coefficients['b'].coValue;
            var c   = coefficients['c'].coValue;

            double denominator = (1 * a) + Math.Pow(Math.E, -(sum * b));

            return((float)((1.0 / denominator) + c));
        }
示例#7
0
        public override float GetOutput(TupleList <float, float> inputs)
        {
            float sum = inputs.WeightedSum();

            double mean     = coefficients['m'].coValue;
            double variance = coefficients['v'].coValue;
            double power    = coefficients['x'].coValue;
            double two      = coefficients['2'].coValue;

            double exponent = -(Math.Pow((sum - mean), power) / (two * variance));
            double divide   = 1.0 / Math.Sqrt(two * Math.PI * variance);

            return((float)(divide * Math.Pow(Math.E, exponent)));
        }