アットウィキロゴ

hosgivv

package math;
 
import org.apache.commons.math3.stat.regression.*;
 
 
public class pro {
 
    public static void main(String[] args) {
        pro test=new pro();
    }
    pro(){
 
OLSMultipleLinearRegression regression = new OLSMultipleLinearRegression();
double y[]=new double[4];        
double x[][]=new double[4][2];  
y[0]=1;
y[1]=2;
y[3]=3;
y[2]=4;
 
x[1][0]=1;
x[1][1]=2;
x[2][0]=1;
x[2][1]=3;
x[3][0]=1;
x[3][1]=4;
x[0][0]=1;
x[0][1]=5;      
 
regression.newSampleData(y,x);
 
 
    }
 
 
 
 
}
最終更新:2015年11月12日 11:31