Struct cubic_splines::CubicPoly[][src]

pub struct CubicPoly<T> { /* fields omitted */ }

Implementations

impl<T> CubicPoly<T> where
    T: Add<T, Output = T> + AddAssign<T> + Sub<T, Output = T> + SubAssign<T> + Mul<f64, Output = T> + Copy
[src]

pub fn new(a: T, b: T, c: T, d: T) -> Self[src]

pub fn shifted(self, x0: f64) -> Self[src]

Creates a polynomial g(x) = f(x-x0), where f(x) = self

pub fn eval(&self, x: f64) -> T[src]

pub fn derivative(&self, x: f64) -> T[src]

impl CubicPoly<f64>[src]

pub fn factors(&self) -> Factors[src]

Trait Implementations

impl<T> Add<CubicPoly<T>> for CubicPoly<T> where
    T: AddAssign<T>, 
[src]

type Output = CubicPoly<T>

The resulting type after applying the + operator.

impl<T> AddAssign<CubicPoly<T>> for CubicPoly<T> where
    T: AddAssign<T>, 
[src]

impl<T: Clone> Clone for CubicPoly<T>[src]

impl<T: Copy> Copy for CubicPoly<T>[src]

impl<T: Debug> Debug for CubicPoly<T>[src]

impl<T> Div<f64> for CubicPoly<T> where
    T: DivAssign<f64>, 
[src]

type Output = CubicPoly<T>

The resulting type after applying the / operator.

impl<T> DivAssign<f64> for CubicPoly<T> where
    T: DivAssign<f64>, 
[src]

impl<T> Mul<f64> for CubicPoly<T> where
    T: MulAssign<f64>, 
[src]

type Output = CubicPoly<T>

The resulting type after applying the * operator.

impl<T> MulAssign<f64> for CubicPoly<T> where
    T: MulAssign<f64>, 
[src]

impl<T: PartialEq> PartialEq<CubicPoly<T>> for CubicPoly<T>[src]

impl<T> StructuralPartialEq for CubicPoly<T>[src]

impl<T> Sub<CubicPoly<T>> for CubicPoly<T> where
    T: SubAssign<T>, 
[src]

type Output = CubicPoly<T>

The resulting type after applying the - operator.

impl<T> SubAssign<CubicPoly<T>> for CubicPoly<T> where
    T: SubAssign<T>, 
[src]

impl<T> Zero for CubicPoly<T> where
    T: Add<T, Output = T> + Sub<T, Output = T> + AddAssign<T> + SubAssign<T> + Mul<f64, Output = T> + Zero + Copy
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for CubicPoly<T> where
    T: RefUnwindSafe

impl<T> Send for CubicPoly<T> where
    T: Send

impl<T> Sync for CubicPoly<T> where
    T: Sync

impl<T> Unpin for CubicPoly<T> where
    T: Unpin

impl<T> UnwindSafe for CubicPoly<T> where
    T: 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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.