Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 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)));
        }