public final class ErrorEvaluationFunctionUtils extends Object
UnivariateFunction
functions errors.Modifier and Type | Method and Description |
---|---|
static double |
getNormInf(double[] abscissas,
double[] functionValues,
UnivariateFunction approximatedFunction)
Compute the L∞ norm (worst value) between the function to evaluate and the approximated function
at the considered abscissas.
|
static double |
getNormInf(UnivariateFunction function,
UnivariateFunction approximatedFunction,
double[] abscissas)
Compute the L∞ norm (worst value) between the function to evaluate and the approximated function
at the considered abscissas.
|
static double |
getStandardDeviation(double[] abscissas,
double[] functionValues,
UnivariateFunction approximatedFunction)
Compute the standard deviation σ between the function to evaluate and the approximated function at the
considered abscissas.
|
static double |
getStandardDeviation(UnivariateFunction function,
UnivariateFunction approximatedFunction,
double[] abscissas)
Compute the standard deviation σ between the function to evaluate and the approximated function at the
considered abscissas.
|
public static double getStandardDeviation(UnivariateFunction function, UnivariateFunction approximatedFunction, double[] abscissas)
Note: the standard deviation isn't computed (return Double.NaN
) if the function or the approximated
function have Double.NaN
values.
function
- Function to evaluateapproximatedFunction
- Approximated functionabscissas
- Abscissas to consideredpublic static double getStandardDeviation(double[] abscissas, double[] functionValues, UnivariateFunction approximatedFunction)
Note: the standard deviation isn't computed (return Double.NaN
) if the function or the approximated
function have Double.NaN
values.
abscissas
- Abscissas to consideredfunctionValues
- Function values at the specified abscissasapproximatedFunction
- Approximated functionDimensionMismatchException
- if abscissas
and functionValues
do not have the same lengthpublic static double getNormInf(UnivariateFunction function, UnivariateFunction approximatedFunction, double[] abscissas)
Note: the L∞ norm isn't computed (return Double.NaN
) if the function or the approximated
function have Double.NaN
values.
function
- Function to evaluateapproximatedFunction
- Approximated functionabscissas
- Abscissas to consideredpublic static double getNormInf(double[] abscissas, double[] functionValues, UnivariateFunction approximatedFunction)
Note: the L∞ norm isn't computed (return Double.NaN
) if the function or the approximated
function have Double.NaN
values.
abscissas
- Abscissas to consideredfunctionValues
- Function values at the specified abscissasapproximatedFunction
- Approximated functionDimensionMismatchException
- if abscissas
and functionValues
do not have the same lengthCopyright © 2023 CNES. All rights reserved.