Enum rsrl::Parameter
[−]
[src]
pub enum Parameter { Fixed(f64), Exponential { init: f64, floor: f64, tau: f64, count: u32, }, Polynomial { init: f64, floor: f64, tau: f64, count: u32, }, Boyan { init: f64, floor: f64, n0: u32, count: u32, }, GHC { init: f64, floor: f64, tau: f64, count: u32, }, }
Variants
Fixed(f64)
Exponential
Fields of Exponential
init: f64 | |
floor: f64 | |
tau: f64 | |
count: u32 |
Polynomial
Fields of Polynomial
init: f64 | |
floor: f64 | |
tau: f64 | |
count: u32 |
Boyan
Fields of Boyan
init: f64 | |
floor: f64 | |
n0: u32 | |
count: u32 |
GHC
Fields of GHC
init: f64 | |
floor: f64 | |
tau: f64 | |
count: u32 |
Methods
impl Parameter
[src]
fn fixed(value: f64) -> Parameter
[src]
fn exponential(init: f64, floor: f64, tau: f64) -> Parameter
[src]
fn polynomial(init: f64, floor: f64, tau: f64) -> Parameter
[src]
fn boyan(init: f64, floor: f64, n0: u32) -> Parameter
[src]
fn ghc(init: f64, floor: f64, tau: f64) -> Parameter
[src]
fn value(&self) -> f64
[src]
fn to_fixed(self) -> Parameter
[src]
fn step(self) -> Parameter
[src]
fn back(self) -> Parameter
[src]
Trait Implementations
impl Clone for Parameter
[src]
fn clone(&self) -> Parameter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Parameter
[src]
impl Add<f64> for Parameter
[src]
type Output = f64
The resulting type after applying the +
operator.
fn add(self, other: f64) -> f64
[src]
Performs the +
operation.
impl Add<Parameter> for Parameter
[src]
type Output = f64
The resulting type after applying the +
operator.
fn add(self, other: Parameter) -> f64
[src]
Performs the +
operation.
impl Sub<f64> for Parameter
[src]
type Output = f64
The resulting type after applying the -
operator.
fn sub(self, other: f64) -> f64
[src]
Performs the -
operation.
impl Sub<Parameter> for Parameter
[src]
type Output = f64
The resulting type after applying the -
operator.
fn sub(self, other: Parameter) -> f64
[src]
Performs the -
operation.
impl Mul<f64> for Parameter
[src]
type Output = f64
The resulting type after applying the *
operator.
fn mul(self, other: f64) -> f64
[src]
Performs the *
operation.
impl Mul<Parameter> for Parameter
[src]
type Output = f64
The resulting type after applying the *
operator.
fn mul(self, other: Parameter) -> f64
[src]
Performs the *
operation.
impl Div<f64> for Parameter
[src]
type Output = f64
The resulting type after applying the /
operator.
fn div(self, other: f64) -> f64
[src]
Performs the /
operation.