File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ This is useful when working with a `Box<dyn Interpolator>`
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
- call [ ` Interpolator::validate ` ] ( https://docs.rs/ninterp/latest/ninterp/trait.Interpolator.html#tymethod.validate ) to rerun these checks.
66
+ call the InterpData's ` validate ` method
67
+ or [ ` Interpolator::validate ` ] ( https://docs.rs/ninterp/latest/ninterp/trait.Interpolator.html#tymethod.validate )
68
+ to rerun these checks.
67
69
68
70
To change the extrapolation setting, call ` set_extrapolate ` .
69
71
@@ -89,12 +91,12 @@ for an example.
89
91
An [ ` Extrapolate ` ] ( https://docs.rs/ninterp/latest/ninterp/enum.Extrapolate.html )
90
92
setting must be provided in the ` new ` method.
91
93
This controls what happens when a point is beyond the range of supplied coordinates.
92
- The following setttings are applicable for all interpolators:
94
+ The following settings are applicable for all interpolators:
93
95
- ` Extrapolate::Fill(T) `
94
96
- ` Extrapolate::Clamp `
95
97
- ` Extrapolate::Error `
96
98
97
- ` Extrapolate::Enable ` is valid for ` Linear ` in all dimensionalities.
99
+ ` Extrapolate::Enable ` is valid for ` Linear ` for all dimensionalities.
98
100
99
101
If you are unsure which variant to choose, ` Extrapolate::Error ` is likely what you want.
100
102
Original file line number Diff line number Diff line change 65
65
//! Instantiation is done by calling an interpolator's `new` method.
66
66
//! For dimensionalities N ≥ 1, this executes a validation step, preventing runtime panics.
67
67
//! After editing interpolator data,
68
- //! call [`Interpolator::validate`]
68
+ //! call the InterpData's `validate` method
69
+ //! or [`Interpolator::validate`]
69
70
//! to rerun these checks.
70
71
//!
71
72
//! To change the extrapolation setting, call `set_extrapolate`.
86
87
//! ## Extrapolation
87
88
//! An [`Extrapolate`] setting must be provided in the `new` method.
88
89
//! This controls what happens when a point is beyond the range of supplied coordinates.
89
- //! The following setttings are applicable for all interpolators:
90
+ //! The following settings are applicable for all interpolators:
90
91
//! - [`Extrapolate::Fill(T)`](`Extrapolate::Fill`)
91
92
//! - [`Extrapolate::Clamp`]
92
93
//! - [`Extrapolate::Error`]
93
94
//!
94
- //! [`Extrapolate::Enable`] is valid for [`Linear`] in all dimensionalities.
95
+ //! [`Extrapolate::Enable`] is valid for [`Linear`] for all dimensionalities.
95
96
//!
96
97
//! If you are unsure which variant to choose, [`Extrapolate::Error`] is likely what you want.
97
98
//!
You can’t perform that action at this time.
0 commit comments