public Result(String target,List<String> regressorNames,double[] xMeans,double[] xStdDevs,int numRegressors,int ny0,int ny1,double[] coefs,double[] stdErrs,double[] probs,double intercept,double logLikelihood,String[] sigmMarker,double chiSq,double alpha){
  if (regressorNames.size() != numRegressors) {
    throw new IllegalArgumentException();
  }
  if (coefs.length != numRegressors + 1) {
    throw new IllegalArgumentException();
  }
  if (stdErrs.length != numRegressors + 1) {
    throw new IllegalArgumentException();
  }
  if (probs.length != numRegressors + 1) {
    throw new IllegalArgumentException();
  }
  if (xMeans.length != numRegressors + 1) {
    throw new IllegalArgumentException();
  }
  if (xStdDevs.length != numRegressors + 1) {
    throw new IllegalArgumentException();
  }
  if (target == null) {
    throw new NullPointerException();
  }
  this.intercept=intercept;
  this.target=target;
  this.xMeans=xMeans;
  this.xStdDevs=xStdDevs;
  this.regressorNames=regressorNames;
  this.numRegressors=numRegressors;
  this.ny0=ny0;
  this.ny1=ny1;
  this.coefs=coefs;
  this.stdErrs=stdErrs;
  this.probs=probs;
  this.logLikelihood=logLikelihood;
  this.sigMarker=sigmMarker;
  this.chiSq=chiSq;
  this.alpha=alpha;
}

public Result ( String target , List < String > regressorNames , double [ ] xMeans , double [ ] xStdDevs , int numRegressors , int ny0 , int ny1 , double [ ] coefs , double [ ] stdErrs , double [ ] probs , double intercept , double logLikelihood , String [ ] sigmMarker , double chiSq , double alpha ) { if ( regressorNames . size ( ) != numRegressors ) { throw new IllegalArgumentException ( ) ; } if ( coefs . length != numRegressors + 1 ) { throw new IllegalArgumentException ( ) ; } if ( stdErrs . length != numRegressors + 1 ) { throw new IllegalArgumentException ( ) ; } if ( probs . length != numRegressors + 1 ) { throw new IllegalArgumentException ( ) ; } if ( xMeans . length != numRegressors + 1 ) { throw new IllegalArgumentException ( ) ; } if ( xStdDevs . length != numRegressors + 1 ) { throw new IllegalArgumentException ( ) ; } if ( target == null ) { throw new NullPointerException ( ) ; } this . intercept = intercept ; this . target = target ; this . xMeans = xMeans ; this . xStdDevs = xStdDevs ; this . regressorNames = regressorNames ; this . numRegressors = numRegressors ; this . ny0 = ny0 ; this . ny1 = ny1 ; this . coefs = coefs ; this . stdErrs = stdErrs ; this . probs = probs ; this . logLikelihood = logLikelihood ; this . sigMarker = sigmMarker ; this . chiSq = chiSq ; this . alpha = alpha ; }
constructs a new linregrresult .
