public override object Evaluate()
        {
            double rate = LeftExpression.EvaluateAsReal();
            double x    = RightExpression.EvaluateAsReal();

            return((Complex) new ExponentialDistribution(rate).ProbabilityDensityFunction(x));
        }
        public override object Evaluate()
        {
            double rate = LeftExpression.EvaluateAsReal();
            double x    = RightExpression.EvaluateAsReal();

            return((Complex) new ExponentialDistribution(rate).CumulativeDistributionFunction(x));
        }
        public override object Evaluate()
        {
            double a = LeftExpression.EvaluateAsReal();
            double b = RightExpression.EvaluateAsReal();

            return((Complex) new UniformDistribution(a, b).GetRandomVariable(_random));
        }
Esempio n. 4
0
        public override object Evaluate()
        {
            double x = LeftExpression.EvaluateAsReal();
            double y = RightExpression.EvaluateAsReal();

            return((Complex)(x % y));
        }
Esempio n. 5
0
        public override object Evaluate()
        {
            double y = LeftExpression.EvaluateAsReal();
            double x = RightExpression.EvaluateAsReal();

            return((Complex)Math.Atan2(y, x));
        }
Esempio n. 6
0
        public override object Evaluate()
        {
            double r     = LeftExpression.EvaluateAsReal();
            double theta = RightExpression.EvaluateAsReal();

            return(new CMatrix(CoordSysConverter.PolarToCartesian(r, theta)));
        }
Esempio n. 7
0
        public override object Evaluate()
        {
            double x = LeftExpression.EvaluateAsReal();
            double y = RightExpression.EvaluateAsReal();

            return(new CMatrix(CoordSysConverter.CartesianToPolar(x, y)));
        }
 public override object Evaluate()
 {
     return(Complex.Log(LeftExpression.EvaluateAsComplex(), RightExpression.EvaluateAsReal()));
 }
Esempio n. 9
0
 public override object Evaluate()
 {
     return((Complex)CMatrix.PNorm(LeftExpression.EvaluateAsCMatrix(), RightExpression.EvaluateAsReal()));
 }