pub struct TfModel {
pub numerator: Vec<Complex64>,
pub denominator: Vec<Complex64>,
pub variable: String,
pub sample_time: f64,
pub input_delay: f64,
pub output_delay: f64,
}Fields§
§numerator: Vec<Complex64>§denominator: Vec<Complex64>§variable: String§sample_time: f64§input_delay: f64§output_delay: f64Implementations§
Source§impl TfModel
impl TfModel
pub fn new( numerator: Vec<Complex64>, denominator: Vec<Complex64>, options: TfOptions, ) -> BuiltinResult<Self>
pub fn with_delays( numerator: Vec<Complex64>, denominator: Vec<Complex64>, options: TfOptions, input_delay: f64, output_delay: f64, ) -> BuiltinResult<Self>
pub fn continuous_variable(variable: impl Into<String>) -> BuiltinResult<Self>
pub fn discrete_variable( variable: impl Into<String>, sample_time: f64, ) -> BuiltinResult<Self>
pub fn scalar(value: Complex64, options: TfOptions) -> BuiltinResult<Self>
pub async fn from_value_async( value: Value, builtin: &'static str, ) -> BuiltinResult<Self>
pub fn from_value(value: Value, builtin: &'static str) -> BuiltinResult<Self>
pub fn to_value(&self, builtin: &'static str) -> BuiltinResult<Value>
pub fn to_real(&self, builtin: &'static str) -> BuiltinResult<RealTfModel>
pub fn is_discrete(&self) -> bool
pub fn normalized(&self) -> BuiltinResult<Self>
pub fn add(&self, rhs: &Self) -> BuiltinResult<Self>
pub fn sub(&self, rhs: &Self) -> BuiltinResult<Self>
pub fn neg(&self) -> BuiltinResult<Self>
pub fn mul(&self, rhs: &Self) -> BuiltinResult<Self>
pub fn div(&self, rhs: &Self) -> BuiltinResult<Self>
pub fn powi(&self, exponent: i64) -> BuiltinResult<Self>
pub fn poles(&self) -> BuiltinResult<Vec<Complex64>>
pub fn dc_gain(&self) -> BuiltinResult<Complex64>
pub fn is_stable(&self) -> BuiltinResult<bool>
pub fn feedback(&self, rhs: &Self, sign: f64) -> BuiltinResult<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TfModel
impl RefUnwindSafe for TfModel
impl Send for TfModel
impl Sync for TfModel
impl Unpin for TfModel
impl UnsafeUnpin for TfModel
impl UnwindSafe for TfModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.