Examples of ExprDouble


Examples of org.boris.expr.ExprDouble

        counter.count++;
        counter.value += value;
    }

    protected Expr evaluate(Counter counter) throws ExprException {
        return new ExprDouble(counter.value / counter.count);
    }
View Full Code Here

Examples of org.boris.expr.ExprDouble

        double b = bnum / bdem;
        double a = averageY - b * averageX;
        double res = a + b * forecastX;

        return new ExprDouble(res);
    }
View Full Code Here

Examples of org.boris.expr.ExprDouble

            factor = asDouble(args[4], true);

        if (cost == 0)
            return ExprDouble.ZERO;

        return new ExprDouble(Financials.ddb(cost, salvage, life, period,
                factor));
    }
View Full Code Here

Examples of org.boris.expr.ExprDouble

import org.boris.expr.function.SimpleDatabaseFunction;

public class DCOUNTA extends SimpleDatabaseFunction
{
    protected Expr evaluateMatches(Expr[] matches) throws ExprException {
        return new ExprDouble(matches.length);
    }
View Full Code Here

Examples of org.boris.expr.ExprDouble

        // Need to match sign with implementation
        double mod = num % div;
        if ((mod > 0 && div < 0) || (mod < 0 && div > 0))
            mod *= -1;

        return new ExprDouble(mod);
    }
View Full Code Here

Examples of org.boris.expr.ExprDouble

        double sum = 0;
        for (int i = 0; i < len; i++) {
            sum += eval(asDouble(arrayX, i), asDouble(arrayY, i));
        }

        return new ExprDouble(sum);
    }
View Full Code Here

Examples of org.boris.expr.ExprDouble

        double sum = 0;
        for (int i = 0; i < len; i++) {
            sum += eval(get(range, i), cond, get(sumrange, i));
        }

        return new ExprDouble(sum);
    }
View Full Code Here

Examples of org.boris.expr.ExprDouble

        assertArgCount(args, 3);
        double x = asDouble(args[0], true);
        double l = asDouble(args[1], true);
        boolean c = asBoolean(args[2], true);

        return new ExprDouble(Statistics.exponDist(x, l, c));
    }
View Full Code Here

Examples of org.boris.expr.ExprDouble

        counter.value += value;
        counter.count++;
    }

    protected Expr evaluate(Counter counter) throws ExprException {
        return new ExprDouble(counter.value2);
    }
View Full Code Here

Examples of org.boris.expr.ExprDouble

    public static Expr product(Expr[] args) throws ExprException {
        double res = 1;
        for (Expr arg : args)
            res *= product(arg);
        return new ExprDouble(res);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.