示例#1
0
        protected override double Apply(double[] args)
        {
            var sum = 0.0;

            for (var i = 0; i < Count; i++)
            {
                sum += Functors[i](args) * Weights[i];
            }
            return(sum);
        }
示例#2
0
        protected override double Apply(double[] args)
        {
            var mul = 1.0;

            for (var i = 0; i < Count; i++)
            {
                mul *= Math.Pow(Functors[i](args), Weights[i]);
            }
            return(mul);
        }
示例#3
0
        protected override double Apply(double[] args)
        {
            var mul = 1.0;
            var sum = 0.0;

            for (var i = 0; i < Count; i++)
            {
                mul *= Math.Pow(Functors[i](args), Weights[i]);
                sum += Functors[i](args) * Weights[i];
            }
            return(Betta * sum + (1.0 - Betta) * mul);
        }