Package pamMaths
Class PamInterp
java.lang.Object
pamMaths.PamInterp
Interpolation library. Initially based on code by
Static methods for doing useful interpolation
- Version:
- : $Revision: 1.1 $
The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement. This information should not be published or distributed to third parties without specific written permission from MBARI.
Copyright 2002 MBARI.
MBARI Proprietary Information. All rights reserved. - Author:
- : Author Jamie Macaulay, (brian) original.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final double[]
interp1
(double[] x, double[] y, double[] xi) ID interpolation of an array.static final double[]
interp1
(double[] x, double[] y, double[] xi, double NaNVal) ID interpolation of an array.static final double[]
interp1
(long[] x, double[] y, long[] xi) static final BigDecimal[]
interp1
(BigDecimal[] x, BigDecimal[] y, BigDecimal[] xi)
-
Constructor Details
-
PamInterp
public PamInterp()
-
-
Method Details
-
interp1
public static final double[] interp1(double[] x, double[] y, double[] xi) throws IllegalArgumentException ID interpolation of an array.- Parameters:
x
- - the x values of the array.y
- - the y values of the arrayxi
- - the x values to calculate new y values for.- Returns:
- interpolated array. Out of range values are NaN
- Throws:
IllegalArgumentException
-
interp1
public static final double[] interp1(double[] x, double[] y, double[] xi, double NaNVal) throws IllegalArgumentException ID interpolation of an array.- Parameters:
x
- - the x values of the array.y
- - the y values of the arrayxi
- - the x values to calculate new y values for.NaNVal
- - value to set for xi values which are out of range.- Returns:
- Throws:
IllegalArgumentException
-
interp1
-
interp1
public static final double[] interp1(long[] x, double[] y, long[] xi) throws IllegalArgumentException - Throws:
IllegalArgumentException
-