pub fn even_interp(
domain: Interval,
samples: usize,
t: f32,
) -> InterpolationDatum<usize>
Available on crate feature
curve
only.Expand description
Given a domain and a number of samples taken over that interval, return an InterpolationDatum
that governs how samples are extracted relative to the stored data.
domain
must be a bounded interval (i.e. domain.is_bounded() == true
).
samples
must be at least 2.
This function will never panic, but it may return invalid indices if its assumptions are violated.