You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is useful when working with a `Box<dyn Interpolator>`
62
62
63
63
Instantiation is done by calling an interpolator's `new` method.
64
64
For dimensionalities N ≥ 1, this executes a validation step, preventing runtime panics.
65
65
After editing interpolator data,
66
66
call the InterpData's `validate` method
67
-
or [`Interpolator::validate`](https://docs.rs/ninterp/latest/ninterp/trait.Interpolator.html#tymethod.validate)
67
+
or [`Interpolator::validate`](https://docs.rs/ninterp/latest/ninterp/interpolator/trait.Interpolator.html#tymethod.validate)
68
68
to rerun these checks.
69
69
70
70
To change the extrapolation setting, call `set_extrapolate`.
@@ -88,20 +88,21 @@ Custom strategies can be defined. See
88
88
for an example.
89
89
90
90
### Extrapolation
91
-
An [`Extrapolate`](https://docs.rs/ninterp/latest/ninterp/enum.Extrapolate.html)
91
+
An [`Extrapolate`](https://docs.rs/ninterp/latest/ninterp/interpolator/enum.Extrapolate.html)
92
92
setting must be provided in the `new` method.
93
93
This controls what happens when a point is beyond the range of supplied coordinates.
94
94
The following settings are applicable for all interpolators:
95
95
-`Extrapolate::Fill(T)`
96
96
-`Extrapolate::Clamp`
97
+
-`Extrapolate::Wrap`
97
98
-`Extrapolate::Error`
98
99
99
100
`Extrapolate::Enable` is valid for `Linear` for all dimensionalities.
100
101
101
102
If you are unsure which variant to choose, `Extrapolate::Error` is likely what you want.
102
103
103
104
### Interpolation
104
-
Interpolation is executed by calling [`Interpolator::interpolate`](https://docs.rs/ninterp/latest/ninterp/trait.Interpolator.html#tymethod.interpolate).
105
+
Interpolation is executed by calling [`Interpolator::interpolate`](https://docs.rs/ninterp/latest/ninterp/interpolator/trait.Interpolator.html#tymethod.interpolate).
105
106
106
107
The length of the interpolant point slice must be equal to the interpolator dimensionality.
107
-
The interpolator dimensionality can be retrieved by calling [`Interpolator::ndim`](https://docs.rs/ninterp/latest/ninterp/trait.Interpolator.html#tymethod.ndim).
108
+
The interpolator dimensionality can be retrieved by calling [`Interpolator::ndim`](https://docs.rs/ninterp/latest/ninterp/interpolator/trait.Interpolator.html#tymethod.ndim).
0 commit comments