Struct light_curve_feature::features::VillarFit [−][src]
pub struct VillarFit { /* fields omitted */ }
Expand description
Villar fit
Five fit parameters and goodness of fit (reduced $\Chi^2$) of the Villar function developed for supernovae classification: $$ f(t) = c + \frac{ A + \beta (t - t_0) }{ 1 + \exp{\frac{-(t - t_0)}{\tau_\mathrm{rise}}}} \left{ \begin{split} &1, t < t_0 + \gamma \ &\exp{\frac{-(t-t_0-\gamma)}{\tau_\mathrm{fall}}}, t \geq t_0 + \gamma \end{split} \right. $$
Note, that the Villar function is developed to use with fluxes, not magnitudes.
Optimization is done using specified algorithm
which is an instance of the
CurveFitAlgorithm, currently supported algorithms are MCMC and
LMSDER (a Levenberg–Marquard algorithm modification, requires
gsl
Cargo feature).
- Depends on: time, magnitude, magnitude error
- Minimum number of observations: 8
- Number of features: 8
Villar et al. 2019 DOI:10.3847/1538-4357/ab418c
Implementations
VillarFit with the default McmcCurveFit
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
Should return the vector of feature values or EvaluatorError
Should return the vector of feature names. The length and feature order should
correspond to eval()
output Read more
Should return the vector of feature descriptions. The length and feature order should
correspond to eval()
output Read more
Should return the vector of feature values and fill invalid components with given value
Should return the size of vectors returned by eval()
and get_names()
Should return minimum time series length to successfully find feature value
Auto Trait Implementations
impl RefUnwindSafe for VillarFit
impl UnwindSafe for VillarFit
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.