pub struct TfDiscretization<T> { /* private fields */ }
Expand description
Discretization of a transfer function
Implementations§
source§impl<T> TfDiscretization<T>where
T: Abs + Add<Output = T> + Clone + Div<Output = T> + Inv<Output = T> + Mul<Output = T> + Neg<Output = T> + One + PartialEq + PartialOrd + Sub<Output = T> + Zero,
impl<T> TfDiscretization<T>where T: Abs + Add<Output = T> + Clone + Div<Output = T> + Inv<Output = T> + Mul<Output = T> + Neg<Output = T> + One + PartialEq + PartialOrd + Sub<Output = T> + Zero,
Implementation of TfDiscretization
struct.
sourcepub fn discretize(tf: Tf<T>, ts: Seconds<T>, method: Discretization) -> Self
pub fn discretize(tf: Tf<T>, ts: Seconds<T>, method: Discretization) -> Self
Discretize a transfer function.
Arguments
tf
- Continuous transfer functionts
- Sampling periodmethod
- Discretization method
Example
use automatica::{
transfer_function::discretization::TfDiscretization,
Complex, Discretization, Seconds, Tf
};
let tf = Tf::new([2., 20.], [1., 0.1]);
let tfz = TfDiscretization::discretize(tf, Seconds(1.), Discretization::BackwardEuler);
let gz = tfz.eval(Complex::new(0., 1.));
Trait Implementations§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more