[−][src]Struct csaps::NdSpline
N-dimensional (univariate/multivariate) spline PP-form representation
NdSpline
represents n-dimensional splines as the set of its attributes and
NxM
array of picewise-polinomial coefficients for every dimension
(N
- the number of dimensions).
Also evaluate
method is implemented for NdSpline
for evaluating the data values
for the given data sites.
Methods
impl<'a, T> NdSpline<'a, T> where
T: Real,
[src]
T: Real,
pub fn new(breaks: ArrayView1<'a, T>, coeffs: Array2<T>) -> NdSpline<'a, T>
[src]
Creates NdSpline
struct from given breaks
and coeffs
Arguments
breaks
-- The breaks (data sites) which have been used for computing splinecoeffs
-- The NxM array of spline coefficients where N isndim
and M is row of pieces of coefficients
Notes
NdSpline
struct should not be created directly by a user in most cases.
pub fn ndim(&self) -> usize
[src]
Returns the spline dimensionality
pub fn order(&self) -> usize
[src]
Returns the spline order
pub fn pieces(&self) -> usize
[src]
Returns the number of pieces of the spline
pub fn breaks(&self) -> ArrayView1<T>
[src]
Returns the view to the breaks array
pub fn coeffs(&self) -> ArrayView2<T>
[src]
Returns the view to the spline coefficients array
pub fn evaluate(&self, xi: ArrayView1<'a, T>) -> Array2<T>
[src]
Evaluates the spline on the given data sites
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for NdSpline<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for NdSpline<'a, T>
impl<'a, T> Sync for NdSpline<'a, T>
impl<'a, T> Unpin for NdSpline<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> UnwindSafe for NdSpline<'a, T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,