Struct std_dev::regression::trig::TangentCoefficients
source · pub struct TangentCoefficients {
pub amplitude: f64,
pub frequency: f64,
pub phase: f64,
}
Available on crate feature
regression
only.Expand description
The coefficients of a tangent 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 TangentCoefficients
impl Clone for TangentCoefficients
source§fn clone(&self) -> TangentCoefficients
fn clone(&self) -> TangentCoefficients
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 TangentCoefficients
impl Debug for TangentCoefficients
source§impl Display for TangentCoefficients
impl Display for TangentCoefficients
source§impl PartialEq<TangentCoefficients> for TangentCoefficients
impl PartialEq<TangentCoefficients> for TangentCoefficients
source§fn eq(&self, other: &TangentCoefficients) -> bool
fn eq(&self, other: &TangentCoefficients) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Predictive for TangentCoefficients
impl Predictive for TangentCoefficients
impl StructuralPartialEq for TangentCoefficients
Auto Trait Implementations§
impl RefUnwindSafe for TangentCoefficients
impl Send for TangentCoefficients
impl Sync for TangentCoefficients
impl Unpin for TangentCoefficients
impl UnwindSafe for TangentCoefficients
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.