Struct std_dev::regression::PowerCoefficients
source · pub struct PowerCoefficients {
pub k: f64,
pub e: f64,
pub predictor_additive: f64,
pub outcome_additive: f64,
}
Available on crate feature
regression
only.Expand description
The coefficients of a power (also called growth) function (kx^e
).
Fields§
§k: f64
Constant
e: f64
exponent
predictor_additive: f64
If the predictors needs to have an offset applied to remove values under 1.
Defaults to 0.
outcome_additive: f64
If the outcomes needs to have an offset applied to remove values under 1.
Defaults to 0.
Trait Implementations§
source§impl Clone for PowerCoefficients
impl Clone for PowerCoefficients
source§fn clone(&self) -> PowerCoefficients
fn clone(&self) -> PowerCoefficients
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 PowerCoefficients
impl Debug for PowerCoefficients
source§impl Display for PowerCoefficients
impl Display for PowerCoefficients
source§impl PartialEq for PowerCoefficients
impl PartialEq for PowerCoefficients
source§fn eq(&self, other: &PowerCoefficients) -> bool
fn eq(&self, other: &PowerCoefficients) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Predictive for PowerCoefficients
impl Predictive for PowerCoefficients
impl StructuralPartialEq for PowerCoefficients
Auto Trait Implementations§
impl Freeze for PowerCoefficients
impl RefUnwindSafe for PowerCoefficients
impl Send for PowerCoefficients
impl Sync for PowerCoefficients
impl Unpin for PowerCoefficients
impl UnwindSafe for PowerCoefficients
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> 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.