private double calcLevelThreshold(double maxCoeff){
  return Math.pow(2.0,Math.floor(Math.log(maxCoeff) / Math.log(2.0)) - 1.0);
}

private double calcLevelThreshold ( double maxCoeff ) { return Math . pow ( 2.0 , Math . floor ( Math . log ( maxCoeff ) / Math . log ( 2.0 ) ) - 1.0 ) ; }
utility method to calculate level threshold
