pub struct CustomCurveFit { /* private fields */ }Implementations§
Source§impl CustomCurveFit
impl CustomCurveFit
Sourcepub fn builder() -> Builder<FormulaStage>
pub fn builder() -> Builder<FormulaStage>
Returns a new builder.
Source§impl CustomCurveFit
impl CustomCurveFit
Sourcepub fn new(formula: StringConstant) -> Self
pub fn new(formula: StringConstant) -> Self
Constructs a new instance of the type.
Sourcepub fn formula(&self) -> &StringConstant
pub fn formula(&self) -> &StringConstant
A mathematical expression in terms of variable and parameter names, e.g. a * x + b * sin(x).
Variable names must match keys in the variables map; parameter names must match keys in the
parameters map.
Sourcepub fn variables(&self) -> &BTreeMap<LocalVariableName, CurveFitVariable>
pub fn variables(&self) -> &BTreeMap<LocalVariableName, CurveFitVariable>
Named input series referenced in the formula. Keys must match the variable names used in the formula expression.
Sourcepub fn parameters(&self) -> &BTreeMap<String, DoubleConstant>
pub fn parameters(&self) -> &BTreeMap<String, DoubleConstant>
Named fitting parameters and their initial guesses. Keys must match the parameter names used in
the formula expression; values are the starting points passed to the optimizer. The target the
curve is fit against is the y of the enclosing curve fit (the timeSeries series values, or the
scatter y series).
Trait Implementations§
Source§impl Clone for CustomCurveFit
impl Clone for CustomCurveFit
Source§fn clone(&self) -> CustomCurveFit
fn clone(&self) -> CustomCurveFit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomCurveFit
impl Debug for CustomCurveFit
Source§impl<'de> Deserialize<'de> for CustomCurveFit
impl<'de> Deserialize<'de> for CustomCurveFit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CustomCurveFit
Source§impl From<CustomCurveFit> for Builder<Complete>
impl From<CustomCurveFit> for Builder<Complete>
Source§fn from(v: CustomCurveFit) -> Self
fn from(v: CustomCurveFit) -> Self
Converts to this type from the input type.
Source§impl Hash for CustomCurveFit
impl Hash for CustomCurveFit
Source§impl Ord for CustomCurveFit
impl Ord for CustomCurveFit
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CustomCurveFit
impl PartialEq for CustomCurveFit
Source§impl PartialOrd for CustomCurveFit
impl PartialOrd for CustomCurveFit
Auto Trait Implementations§
impl Freeze for CustomCurveFit
impl RefUnwindSafe for CustomCurveFit
impl Send for CustomCurveFit
impl Sync for CustomCurveFit
impl Unpin for CustomCurveFit
impl UnsafeUnpin for CustomCurveFit
impl UnwindSafe for CustomCurveFit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.