Struct light_curve_feature::features::LinearFit[][src]

pub struct LinearFit {}
Expand description

Slope, its error and reduced $\chi^2$ of the light curve in the linear fit

Least squares fit of the linear stochastic model with Gaussian noise described by observation errors ${\delta_i}$: $$ m_i = c + \mathrm{slope},t_i + \delta_i \varepsilon_i $$ where $c$ is a constant, ${\varepsilon_i}$ are standard distributed random variables.

Feature values are $\mathrm{slope}$, $\sigma_\mathrm{slope}$ and $\frac{\sum{((m_i - c - \mathrm{slope},t_i) / \delta_i)^2}}{N - 2}$.

  • Depends on: time, magnitude, magnitude error
  • Minimum number of observations: 3
  • Number of features: 3

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Should return the vector of feature values or EvaluatorError

Get feature evaluator meta-information

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

Performs the conversion.

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

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

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

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

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

Convert the subject to a given type.

Attempt to convert the subject to a given type.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.