Struct std_dev::regression::trig::SecantCoefficients
source · pub struct SecantCoefficients {
pub amplitude: f64,
pub frequency: f64,
pub phase: f64,
}
Available on crate feature
regression
only.Expand description
The coefficients of a secant function.
Fields§
§amplitude: f64
The amplitude of this function.
frequency: f64
The frequency of this function.
phase: f64
The phase of this function (x offset).
Trait Implementations§
source§impl Clone for SecantCoefficients
impl Clone for SecantCoefficients
source§fn clone(&self) -> SecantCoefficients
fn clone(&self) -> SecantCoefficients
Returns a copy of the value. Read more
1.0.0 · 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 SecantCoefficients
impl Debug for SecantCoefficients
source§impl Display for SecantCoefficients
impl Display for SecantCoefficients
source§impl PartialEq<SecantCoefficients> for SecantCoefficients
impl PartialEq<SecantCoefficients> for SecantCoefficients
source§fn eq(&self, other: &SecantCoefficients) -> bool
fn eq(&self, other: &SecantCoefficients) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Predictive for SecantCoefficients
impl Predictive for SecantCoefficients
impl StructuralPartialEq for SecantCoefficients
Auto Trait Implementations§
impl RefUnwindSafe for SecantCoefficients
impl Send for SecantCoefficients
impl Sync for SecantCoefficients
impl Unpin for SecantCoefficients
impl UnwindSafe for SecantCoefficients
Blanket Implementations§
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> Determination for Twhere
T: Predictive,
impl<T> Determination for Twhere T: Predictive,
source§fn determination(
&self,
predictors: impl Iterator<Item = f64>,
outcomes: impl Iterator<Item = f64> + Clone,
len: usize
) -> f64
fn determination( &self, predictors: impl Iterator<Item = f64>, outcomes: impl Iterator<Item = f64> + Clone, len: usize ) -> f64
Available on crate feature
regression
only.Calculates the R² (coefficient of determination), the proportion of variation in predicted
model. Read more
source§fn determination_slice(&self, predictors: &[f64], outcomes: &[f64]) -> f64
fn determination_slice(&self, predictors: &[f64], outcomes: &[f64]) -> f64
Available on crate feature
regression
only.Convenience method for
Determination::determination
when using slices.source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
OverflowingCasts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
UnwrappedCasts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
WrappingCasts the value.