* Constructor.
* @param func the array representing function values.
* @param interpMethod method to use when interpolating
*/
private ArrayFunction(double[] func, InterpolationMethod interpMethod) {
this(func, new FunctionInverter(func).createInverseFunction(new Range(0, 1.0)), interpMethod);
}