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.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_EXTEND
Default number of extension points of the samples array. |
| private final int | extend
Number of extension points. |
| private final UnivariateInterpolator | interpolator
Interpolator. |
| private final double | period
Period. |
| Access | Constructor and Description |
|---|---|
| public | UnivariatePeriodicInterpolator(UnivariateInterpolator
Interpolator. interpolator, double Period. period, int 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 extend)interpolator needs
on each side of the interpolated point.Builds an interpolator. |
| public | UnivariatePeriodicInterpolator(UnivariateInterpolator
Interpolator. interpolator, double Period. period)Builds an interpolator. |
| Modifier and Type | Method and Description |
|---|---|
| public UnivariateFunction | interpolate(double[]
Arguments for the interpolation points. xval, double[] Values for the interpolation points. yval)Implements org. Compute an interpolating function for the dataset. |
| DEFAULT_EXTEND | back to summary |
|---|---|
| public static final int DEFAULT_EXTEND Default number of extension points of the samples array. | |
| extend | back to summary |
|---|---|
| private final int extend Number of extension points. | |
| interpolator | back to summary |
|---|---|
| private final UnivariateInterpolator interpolator Interpolator. | |
| period | back to summary |
|---|---|
| private final double period Period. | |
| UnivariatePeriodicInterpolator | back to summary |
|---|---|
| public UnivariatePeriodicInterpolator(UnivariateInterpolator interpolator, double period, int extend) Builds an interpolator.
| |
| UnivariatePeriodicInterpolator | back to summary |
|---|---|
| public UnivariatePeriodicInterpolator(UnivariateInterpolator interpolator, double period) Builds an interpolator.
Uses
| |
| interpolate | back to summary |
|---|---|
| public UnivariateFunction interpolate(double[] xval, double[] yval) throws NumberIsTooSmallException, NonMonotonicSequenceException Implements org. Doc from org. Compute an interpolating function for the dataset.
| |