pub enum TrendlineKind {
Linear,
Exponential,
Logarithmic,
Polynomial(u8),
Power,
MovingAverage(u32),
}Expand description
Regression a trendline fits (c:trendlineType).
Variants§
Linear
Exponential
y = c·e^(b·x).
Logarithmic
y = c·ln(x) + b.
Polynomial(u8)
Polynomial of this order (2..=6).
Power
y = c·x^b.
MovingAverage(u32)
Average of this many consecutive points (2..=255).
Trait Implementations§
Source§impl Clone for TrendlineKind
impl Clone for TrendlineKind
Source§fn clone(&self) -> TrendlineKind
fn clone(&self) -> TrendlineKind
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 moreimpl Copy for TrendlineKind
Source§impl Debug for TrendlineKind
impl Debug for TrendlineKind
Source§impl Default for TrendlineKind
impl Default for TrendlineKind
Source§fn default() -> TrendlineKind
fn default() -> TrendlineKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrendlineKind
impl<'de> Deserialize<'de> for TrendlineKind
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 TrendlineKind
Source§impl PartialEq for TrendlineKind
impl PartialEq for TrendlineKind
Source§impl Serialize for TrendlineKind
impl Serialize for TrendlineKind
impl StructuralPartialEq for TrendlineKind
Auto Trait Implementations§
impl Freeze for TrendlineKind
impl RefUnwindSafe for TrendlineKind
impl Send for TrendlineKind
impl Sync for TrendlineKind
impl Unpin for TrendlineKind
impl UnsafeUnpin for TrendlineKind
impl UnwindSafe for TrendlineKind
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.