Struct au::transfer_function::discretization::TfDiscretization[][src]

pub struct TfDiscretization<T: Num> { /* fields omitted */ }

Discretization of a transfer function

Implementations

impl<T: Float> TfDiscretization<T>[src]

Implementation of TfDiscretization struct.

pub fn discretize(tf: Tf<T>, ts: Seconds<T>, method: Discretization) -> Self[src]

Discretize a transfer function.

Arguments

  • tf - Continuous transfer function
  • ts - Sampling period
  • method - Discretization method

Example

use au::{
    polynomial::Poly,
    transfer_function::discretization::TfDiscretization,
    Discretization,
    Seconds,
    Tf
};
use au::num_complex::Complex64;
let tf = Tf::new(
    Poly::new_from_coeffs(&[2., 20.]),
    Poly::new_from_coeffs(&[1., 0.1]),
);
let tfz = TfDiscretization::discretize(tf, Seconds(1.), Discretization::BackwardEuler);
let gz = tfz.eval(Complex64::i());

impl<T: Float> TfDiscretization<T>[src]

pub fn eval(&self, z: Complex<T>) -> Complex<T>[src]

Evaluate the discretization of the transfer function

Arguments

  • z - Value at which the transfer function is evaluated.

Trait Implementations

impl<T: Debug + Num> Debug for TfDiscretization<T>[src]

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for TfDiscretization<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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,