|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.math3.analysis.interpolation.UnivariatePeriodicInterpolator
public class UnivariatePeriodicInterpolator
Adapter for classes implementing the UnivariateInterpolator
interface.
The data to be interpolated is assumed to be periodic. Thus values that are
outside of the range can be passed to the interpolation function: They will
be wrapped into the initial range before being passed to the class that
actually computes the interpolation.
Field Summary | |
---|---|
static int |
DEFAULT_EXTEND
Default number of extension points of the samples array. |
Constructor Summary | |
---|---|
UnivariatePeriodicInterpolator(UnivariateInterpolator interpolator,
double period)
Builds an interpolator. |
|
UnivariatePeriodicInterpolator(UnivariateInterpolator interpolator,
double period,
int extend)
Builds an interpolator. |
Method Summary | |
---|---|
UnivariateFunction |
interpolate(double[] xval,
double[] yval)
Compute an interpolating function for the dataset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_EXTEND
Constructor Detail |
---|
public UnivariatePeriodicInterpolator(UnivariateInterpolator interpolator, double period, int extend)
interpolator
- Interpolator.period
- Period.extend
- Number of points to be appended at the beginning and
end of the sample arrays in order to avoid interpolation failure at
the (periodic) boundaries of the orginal interval. The value is the
number of sample points which the original interpolator
needs
on each side of the interpolated point.public UnivariatePeriodicInterpolator(UnivariateInterpolator interpolator, double period)
DEFAULT_EXTEND
as the number of extension points on each side
of the original abscissae range.
interpolator
- Interpolator.period
- Period.Method Detail |
---|
public UnivariateFunction interpolate(double[] xval, double[] yval) throws NumberIsTooSmallException
interpolate
in interface UnivariateInterpolator
xval
- Arguments for the interpolation points.yval
- Values for the interpolation points.
NumberIsTooSmallException
- if the number of extension points
iss larger then the size of xval
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |