Examples of asDoubleArray()


Examples of org.rosuda.JRI.REXP.asDoubleArray()

    }
 
    public static double[] evalDoubles(String evalstr) {
        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asDoubleArray() != null) {
            return x.asDoubleArray()
        }
        return null;
    }
 
View Full Code Here

Examples of org.rosuda.JRI.REXP.asDoubleArray()

 
    public static double[] evalDoubles(String evalstr) {
        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asDoubleArray() != null) {
            return x.asDoubleArray()
        }
        return null;
    }
 
    public static Double evalDouble(String evalstr) {
View Full Code Here

Examples of org.rosuda.JRI.REXP.asDoubleArray()

    }
 
    public static Double evalDouble(String evalstr) {
        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asDoubleArray() != null) {
            // TODO: try sinnvoll?
            try {
                return x.asDoubleArray()[0]
            } catch (Exception e) {
                return 0.0;
View Full Code Here

Examples of org.rosuda.JRI.REXP.asDoubleArray()

        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asDoubleArray() != null) {
            // TODO: try sinnvoll?
            try {
                return x.asDoubleArray()[0]
            } catch (Exception e) {
                return 0.0;
            }
        }
        return 0.0;
View Full Code Here

Examples of org.rosuda.JRI.REXP.asDoubleArray()

            System.out.println("Result = "+e+", running eval");
            long r=re.rniEval(e, 0);
            System.out.println("Result = "+r+", building REXP");
            REXP x=new REXP(re, r);
            System.out.println("REXP result = "+x);
            double d[]=x.asDoubleArray();
            if (d!=null) {
                int i=0; while (i<d.length) { System.out.print(((i==0)?"":", ")+d[i]); i++; }
                System.out.println("");
            }
            System.out.println("");
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.