@Test
public void test() {
int i,DIM=3,N=10000;
double xave,xvar,yave,yvar,zave,zvar;
doubleW xaveW=new doubleW(0),xvarW=new doubleW(0);
doubleW yaveW=new doubleW(0),yvarW=new doubleW(0);
doubleW zaveW=new doubleW(0),zvarW=new doubleW(0);
double covxy=0.0,covxz=0.0,covyz=0.0,sbeps=0.05;
double mmean[]={1.0,2.0,3.0};
double ccovar[]={1.0,0.5,0.5,0.5,2.0,0.5,0.5,0.5,3.0};
double[] mean = buildVector(mmean),a = new double[DIM],x= new double[N],y= new double[N],z= new double[N];
double[][] covar = buildMatrix(DIM,DIM,ccovar);