Enum light_curve_feature::LnPrior1D

source ·
#[non_exhaustive]
pub enum LnPrior1D { None(NoneLnPrior1D), LogNormal(LogNormalLnPrior1D), LogUniform(LogUniformLnPrior1D), Normal(NormalLnPrior1D), Uniform(UniformLnPrior1D), Mix(MixLnPrior1D), }
Expand description

Natural logarithm of prior for a single parameter of the 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.

Implementations§

source§

impl LnPrior1D

source

pub fn none() -> Self

source

pub fn log_normal(mu: f64, std: f64) -> Self

source

pub fn log_uniform(left: f64, right: f64) -> Self

source

pub fn normal(mu: f64, std: f64) -> Self

source

pub fn uniform(left: f64, right: f64) -> Self

source

pub fn mix(weight_prior_pairs: Vec<(f64, LnPrior1D)>) -> Self

Trait Implementations§

source§

impl Clone for LnPrior1D

source§

fn clone(&self) -> LnPrior1D

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LnPrior1D

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for LnPrior1D

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<LogNormalLnPrior1D> for LnPrior1D

source§

fn from(v: LogNormalLnPrior1D) -> LnPrior1D

Converts to this type from the input type.
source§

impl From<LogUniformLnPrior1D> for LnPrior1D

source§

fn from(v: LogUniformLnPrior1D) -> LnPrior1D

Converts to this type from the input type.
source§

impl From<MixLnPrior1D> for LnPrior1D

source§

fn from(v: MixLnPrior1D) -> LnPrior1D

Converts to this type from the input type.
source§

impl From<NoneLnPrior1D> for LnPrior1D

source§

fn from(v: NoneLnPrior1D) -> LnPrior1D

Converts to this type from the input type.
source§

impl From<NormalLnPrior1D> for LnPrior1D

source§

fn from(v: NormalLnPrior1D) -> LnPrior1D

Converts to this type from the input type.
source§

impl From<UniformLnPrior1D> for LnPrior1D

source§

fn from(v: UniformLnPrior1D) -> LnPrior1D

Converts to this type from the input type.
source§

impl JsonSchema for LnPrior1D

source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
source§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
source§

impl LnPrior1DTrait for LnPrior1D

source§

fn ln_prior_1d(&self, __enum_dispatch_arg_0: f64) -> f64

source§

impl Serialize for LnPrior1D

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryInto<LogNormalLnPrior1D> for LnPrior1D

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<LogNormalLnPrior1D, <Self as TryInto<LogNormalLnPrior1D>>::Error>

Performs the conversion.
source§

impl TryInto<LogUniformLnPrior1D> for LnPrior1D

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<LogUniformLnPrior1D, <Self as TryInto<LogUniformLnPrior1D>>::Error>

Performs the conversion.
source§

impl TryInto<MixLnPrior1D> for LnPrior1D

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<MixLnPrior1D, <Self as TryInto<MixLnPrior1D>>::Error>

Performs the conversion.
source§

impl TryInto<NoneLnPrior1D> for LnPrior1D

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<NoneLnPrior1D, <Self as TryInto<NoneLnPrior1D>>::Error>

Performs the conversion.
source§

impl TryInto<NormalLnPrior1D> for LnPrior1D

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<NormalLnPrior1D, <Self as TryInto<NormalLnPrior1D>>::Error>

Performs the conversion.
source§

impl TryInto<UniformLnPrior1D> for LnPrior1D

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<UniformLnPrior1D, <Self as TryInto<UniformLnPrior1D>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src
where Scheme: ApproxScheme,

§

type Err = NoError

The error type produced by a failed conversion.
source§

fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>

Convert the given value into an approximately equivalent representation.
source§

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src
where Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,

§

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.
source§

fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>

Convert the subject into an approximately equivalent representation.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, Dst> ConvAsUtil<Dst> for T

source§

fn approx(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject with the default scheme.
source§

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject with a specific scheme.
source§

impl<T> ConvUtil for T

source§

fn approx_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject to a given type with the default scheme.
source§

fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject to a given type with a specific scheme.
source§

fn into_as<Dst>(self) -> Dst
where Self: Sized + Into<Dst>,

Convert the subject to a given type.
source§

fn try_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + TryInto<Dst>,

Attempt to convert the subject to a given type.
source§

fn value_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ValueInto<Dst>,

Attempt a value conversion of the subject to a given type.
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<Src> TryFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
source§

fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>

Convert the given value into the subject type.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<Src, Dst> TryInto<Dst> for Src
where Dst: TryFrom<Src>,

§

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.
source§

fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>

Convert the subject into the destination type.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<Src> ValueFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
source§

fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>

Convert the given value into an exactly equivalent representation.
source§

impl<Src, Dst> ValueInto<Dst> for Src
where Dst: ValueFrom<Src>,

§

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.
source§

fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>

Convert the subject into an exactly equivalent representation.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,