public UniformDistribution estimate(double min,double max,final int count){
  double grow=(count > 1) ? 0.5 * (max - min) / (count - 1) : 0.;
  return new UniformDistribution(Math.max(min - grow,-Double.MAX_VALUE),Math.min(max + grow,Double.MAX_VALUE));
}

public UniformDistribution estimate ( double min , double max , final int count ) { double grow = ( count > 1 ) ? 0.5 * ( max - min ) / ( count - 1 ) : 0. ; return new UniformDistribution ( Math . max ( min - grow , - Double . MAX_VALUE ) , Math . min ( max + grow , Double . MAX_VALUE ) ) ; }
estimate from simple characteristics .
