Enum light_curve_feature::LnPrior [−][src]
#[non_exhaustive]
pub enum LnPrior<const NPARAMS: usize> {
None(NoneLnPrior),
IndComponents(IndComponentsLnPrior<NPARAMS>),
}
Expand description
Natural logarithm of prior for non-linear curve-fit problem
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None(NoneLnPrior)
Tuple Fields
0: NoneLnPrior
IndComponents(IndComponentsLnPrior<NPARAMS>)
Tuple Fields
0: IndComponentsLnPrior<NPARAMS>
Implementations
pub fn into_func_with_transformation<'a, F>(
self,
transform: F
) -> impl 'a + Clone + Fn(&[f64; NPARAMS]) -> f64 where
F: 'a + Clone + Fn(&[f64; NPARAMS]) -> [f64; NPARAMS],
pub fn as_func_with_transformation<'a, F>(
&'a self,
transform: F
) -> impl 'a + Clone + Fn(&[f64; NPARAMS]) -> f64 where
F: 'a + Clone + Fn(&[f64; NPARAMS]) -> [f64; NPARAMS],
Trait Implementations
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
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<const NPARAMS: usize> RefUnwindSafe for LnPrior<NPARAMS>
impl<const NPARAMS: usize> UnwindSafe for LnPrior<NPARAMS>
Blanket Implementations
Convert the given value into an approximately equivalent representation.
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Convert the subject into an approximately equivalent representation.
Mutably borrows from an owned value. Read more
Approximate the subject with the default scheme.
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject with a specific scheme.
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
Attempt to convert the subject to a given type.