* @throws IncorrectDistributionParameterException if mean value is invalid for this distribution
*/
@Override
public void setMean(double meanValue) throws IncorrectDistributionParameterException {
if (meanValue < 0 || Double.isInfinite(meanValue)) {
throw new IncorrectDistributionParameterException("Mean value must be finite and greater than zero");
}
// Keeps variation coefficient c constant
double c = (max - min) / (max + min) * Math.sqrt(3);
max = meanValue + meanValue * c / Math.sqrt(3);
min = meanValue - meanValue * c / Math.sqrt(3);