public GaussianDensityFunction(Double mean,Double variance){
  this.mean=new double[]{mean};
  this.variance=new double[]{variance};
  stdDev=new double[]{Math.sqrt(variance)};
  if (variance < 0) {
    log.warning("variance should not be negative, but is : " + variance);
  }
}

public GaussianDensityFunction ( Double mean , Double variance ) { this . mean = new double [ ] { mean } ; this . variance = new double [ ] { variance } ; stdDev = new double [ ] { Math . sqrt ( variance ) } ; if ( variance < 0 ) { log . warning ( "variance should not be negative, but is : " + variance ) ; } }
creates a new , univariate density function with a given mean and variance
