public class FuncUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
findValueMonotonic(Function f,
double xlo,
double xhi,
double y0,
double ytol)
Locates the X value where a supplied monotonically non-decreasing
function is within a specified tolerance of a given Y value.
|
static Function |
interpolateLinear(NumericFunction nf)
Returns a function which represents an interpolated representation
of the given sample set, using linear interpolation.
|
static Function |
interpolateQuadratic(NumericFunction nf)
Returns a function which represents an interpolated representation
of the given sample set, using quadratic interpolation with
Legendre polynomials.
|
static Function |
interpolateSpline(NumericFunction nf)
Returns a function which represents an interpolated representation
of the given sample set, using splines.
|
public static Function interpolateQuadratic(NumericFunction nf)
nf - input numeric functionpublic static Function interpolateSpline(NumericFunction nf)
nf - input numeric functionpublic static Function interpolateLinear(NumericFunction nf)
nf - input numeric functionpublic static double findValueMonotonic(Function f, double xlo, double xhi, double y0, double ytol)
f - monotonic functionxlo - lowest X value to considerxhi - highest X value to considery0 - required Y valueytol - tolerance in Yy0,
or NaN if it's not in rangeCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.