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) -> CustomCurveFit
pub fn new(formula: StringConstant) -> CustomCurveFit
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<CustomCurveFit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomCurveFit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CustomCurveFit
Source§impl Hash for CustomCurveFit
impl Hash for CustomCurveFit
Source§impl Ord for CustomCurveFit
impl Ord for CustomCurveFit
Source§fn cmp(&self, other: &CustomCurveFit) -> Ordering
fn cmp(&self, other: &CustomCurveFit) -> Ordering
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
Source§impl Serialize for CustomCurveFit
impl Serialize for CustomCurveFit
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request