public static DoubleParameter createUniformParameter(double val, double minVal, double maxVal,
String paramName, double[] specialValues,
double[] specialValueProbabilities) {
DoubleParameter param = new DoubleParameter(val, minVal, maxVal, paramName);
param.setRedistributionFunction(
new UniformRedistribution(specialValues, specialValueProbabilities));
return param;
}