@Override public double[] sample(){
  double[] result=new double[mean.length];
  for (int i=0; i < mean.length; i++) {
    result[i]=(sampler.nextGaussian() * stdDev[i]) + mean[i];
  }
  return result;
}

@ Override public double [ ] sample ( ) { double [ ] result = new double [ mean . length ] ; for ( int i = 0 ; i < mean . length ; i ++ ) { result [ i ] = ( sampler . nextGaussian ( ) * stdDev [ i ] ) + mean [ i ] ; } return result ; }
samples values from the gaussian using box - muller ' s method .
