[][src]Struct csaps::NdSpline

pub struct NdSpline<'a, T: Real> { /* fields omitted */ }

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]

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 spline
  • coeffs -- The NxM array of spline coefficients where N is ndim 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

impl<'a, T: Debug + Real> Debug for NdSpline<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for NdSpline<'a, T> where
    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

impl<'a, T> UnwindSafe for NdSpline<'a, T> where
    T: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.