pub struct Bins<T, F> where
    T: Float,
    F: FeatureEvaluator<T>, 
{ /* private fields */ }
Expand description

Sampled time series meta-feature

Binning time series to bins with width $\mathrm{window}$ with respect to some $\mathrm{offset}$. $j-th$ bin interval is $[j \cdot \mathrm{window} + \mathrm{offset}; (j + 1) \cdot \mathrm{window} + \mathrm{offset})$. Binned time series is defined by $$ t_j^* = (j + \frac12) \cdot \mathrm{window} + \mathrm{offset}, $$ $$ m_j^* = \frac{\sum{m_i / \delta_i^2}}{\sum{\delta_i^{-2}}}, $$ $$ \delta_j^* = \frac{N_j}{\sum{\delta_i^{-2}}}, $$ where $N_j$ is a number of sampling observations and all sums are over observations inside considering bin. Bins takes any other feature evaluators to extract features from sample time series

  • Depends on: time, magnitude, magnitude error
  • Minimum number of observations: as required by sub-features, but at least 1
  • Number of features: as provided by sub-features

Implementations

Extend a feature to extract from binned time series

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

Get feature evaluator meta-information

Size of vectors returned by eval(), get_names() and get_descriptions() Read more

Minimum time series length required to successfully evaluate feature

If time array used by the feature

If magnitude array is used by the feature

If weight array is used by the feature

If feature requires time-sorting on the input TimeSeries

Vector of feature values or EvaluatorError

Returns vector of feature values and fill invalid components with given value

Checks if TimeSeries has enough points to evaluate the feature

Vector of feature names. The length and feature order corresponds to eval() output Read more

Vector of feature descriptions. The length and feature order corresponds to eval() output Read more

Converts to this type from the input type.

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

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. 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.

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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.