Package org.rosuda.REngine

Examples of org.rosuda.REngine.REXPDouble


        return new REXPString(strings);
      }
      else if (array[0] instanceof Number)
      {
        double[] doubles = ListUtils.copyDoubleArray(array, new double[array.length]);
        return new REXPDouble(doubles);
      }
      else if (array[0] instanceof Object[]) // 2-d matrix
      {
        // handle 2-d matrix
        RList rList = new RList();
View Full Code Here


      }
    }
    RList rlist = new RList();
    rlist.put("dim", new REXPInteger(new int[] { nrow, ncol }));
    REXPList attrs = new REXPList(rlist);
    return new REXPDouble(ret, attrs);
  }
View Full Code Here

    }
    else if(obj instanceof int[]){
      return new REXPInteger((int[])obj);
    }
    else if(obj instanceof double[]){
      return new REXPDouble((double[])obj);
    }
    else if(obj instanceof double[][])  {
      return matrix2rexp((double[][])obj);
    }
    else if(obj instanceof String[]){
      return new REXPString((String[])obj);
    }
    else if(obj instanceof boolean[]){
      return new REXPLogical((boolean[])obj);
    }
    else if(obj instanceof byte[])  {
      return new REXPRaw((byte[])obj);
    }
    else if(obj instanceof Integer){
      return new REXPInteger((Integer)obj);
    }
    else if(obj instanceof Double)  {
      return new REXPDouble((Double)obj);
    }
    else if(obj instanceof String)  {
      return new REXPString((String)obj);
    }
    else if(obj instanceof Boolean)  {
View Full Code Here

TOP

Related Classes of org.rosuda.REngine.REXPDouble

Copyright © 2018 www.massapicom. 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.