Enum light_curve_feature::Feature [−][src]
#[non_exhaustive]
pub enum Feature<T> where
T: Float, {
Show 37 variants
FeatureExtractor(FeatureExtractor<T, Self>),
Amplitude(Amplitude),
AndersonDarlingNormal(AndersonDarlingNormal),
BazinFit(BazinFit),
BeyondNStd(BeyondNStd<T>),
Bins(Bins<T, Self>),
Cusum(Cusum),
Eta(Eta),
EtaE(EtaE),
ExcessVariance(ExcessVariance),
InterPercentileRange(InterPercentileRange),
Kurtosis(Kurtosis),
LinearFit(LinearFit),
LinearTrend(LinearTrend),
MagnitudePercentageRatio(MagnitudePercentageRatio),
MaximumSlope(MaximumSlope),
Mean(Mean),
MeanVariance(MeanVariance),
Median(Median),
MedianAbsoluteDeviation(MedianAbsoluteDeviation),
MedianBufferRangePercentage(MedianBufferRangePercentage<T>),
PercentAmplitude(PercentAmplitude),
PercentDifferenceMagnitudePercentile(PercentDifferenceMagnitudePercentile),
Periodogram(Periodogram<T, Self>),
_PeriodogramPeaks(_PeriodogramPeaks),
ReducedChi2(ReducedChi2),
Skew(Skew),
StandardDeviation(StandardDeviation),
StetsonK(StetsonK),
VillarFit(VillarFit),
WeightedMean(WeightedMean),
Duration(Duration),
MaximumTimeInterval(MaximumTimeInterval),
MinimumTimeInterval(MinimumTimeInterval),
ObservationCount(ObservationCount),
TimeMean(TimeMean),
TimeStandardDeviation(TimeStandardDeviation),
}
Expand description
All features are available as variants of this enum
Consider to import crate::FeatureEvaluator as well
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Tuple Fields of FeatureExtractor
0: FeatureExtractor<T, Self>
Tuple Fields of Amplitude
0: Amplitude
Tuple Fields of AndersonDarlingNormal
Tuple Fields of BazinFit
0: BazinFit
Tuple Fields of BeyondNStd
0: BeyondNStd<T>
Tuple Fields of Bins
0: Bins<T, Self>
Tuple Fields of Cusum
0: Cusum
Tuple Fields of Eta
0: Eta
Tuple Fields of EtaE
0: EtaE
Tuple Fields of ExcessVariance
Tuple Fields of InterPercentileRange
Tuple Fields of Kurtosis
0: Kurtosis
Tuple Fields of LinearFit
0: LinearFit
Tuple Fields of LinearTrend
0: LinearTrend
Tuple Fields of MagnitudePercentageRatio
Tuple Fields of MaximumSlope
0: MaximumSlope
Tuple Fields of Mean
0: Mean
Tuple Fields of MeanVariance
0: MeanVariance
Tuple Fields of Median
0: Median
Tuple Fields of MedianAbsoluteDeviation
Tuple Fields of MedianBufferRangePercentage
Tuple Fields of PercentAmplitude
Tuple Fields of PercentDifferenceMagnitudePercentile
Tuple Fields of Periodogram
0: Periodogram<T, Self>
Tuple Fields of ReducedChi2
0: ReducedChi2
Tuple Fields of Skew
0: Skew
Tuple Fields of StandardDeviation
Tuple Fields of StetsonK
0: StetsonK
Tuple Fields of VillarFit
0: VillarFit
Tuple Fields of WeightedMean
0: WeightedMean
Tuple Fields of Duration
0: Duration
Tuple Fields of MaximumTimeInterval
Tuple Fields of MinimumTimeInterval
Tuple Fields of ObservationCount
Tuple Fields of TimeMean
0: TimeMean
Tuple Fields of TimeStandardDeviation
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
fn eval(
&self,
__enum_dispatch_arg_0: &mut TimeSeries<'_, T>
) -> Result<Vec<T>, EvaluatorError>
fn eval(
&self,
__enum_dispatch_arg_0: &mut TimeSeries<'_, T>
) -> Result<Vec<T>, EvaluatorError>
Vector of feature values or EvaluatorError
fn eval_or_fill(
&self,
__enum_dispatch_arg_0: &mut TimeSeries<'_, T>,
__enum_dispatch_arg_1: T
) -> Vec<T>
fn eval_or_fill(
&self,
__enum_dispatch_arg_0: &mut TimeSeries<'_, T>,
__enum_dispatch_arg_1: T
) -> Vec<T>
Returns vector of feature values and fill invalid components with given value
Vector of feature names. The length and feature order corresponds to eval() output
Vector of feature descriptions. The length and feature order corresponds to eval() output
Size of vectors returned by eval(), get_names() and get_descriptions()
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
fn check_ts_length(
&self,
__enum_dispatch_arg_0: &TimeSeries<'_, T>
) -> Result<usize, EvaluatorError>
fn check_ts_length(
&self,
__enum_dispatch_arg_0: &TimeSeries<'_, T>
) -> Result<usize, EvaluatorError>
Checks if TimeSeries has enough points to evaluate the feature
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
fn try_into(
self
) -> Result<AndersonDarlingNormal, <Self as TryInto<AndersonDarlingNormal>>::Error>
fn try_into(
self
) -> Result<AndersonDarlingNormal, <Self as TryInto<AndersonDarlingNormal>>::Error>
Performs the conversion.
Performs the conversion.
Performs the conversion.
fn try_into(
self
) -> Result<FeatureExtractor<T, Self>, <Self as TryInto<FeatureExtractor<T, Self>>>::Error>
fn try_into(
self
) -> Result<FeatureExtractor<T, Self>, <Self as TryInto<FeatureExtractor<T, Self>>>::Error>
Performs the conversion.
fn try_into(
self
) -> Result<InterPercentileRange, <Self as TryInto<InterPercentileRange>>::Error>
fn try_into(
self
) -> Result<InterPercentileRange, <Self as TryInto<InterPercentileRange>>::Error>
Performs the conversion.
Performs the conversion.
fn try_into(
self
) -> Result<MagnitudePercentageRatio, <Self as TryInto<MagnitudePercentageRatio>>::Error>
fn try_into(
self
) -> Result<MagnitudePercentageRatio, <Self as TryInto<MagnitudePercentageRatio>>::Error>
Performs the conversion.
Performs the conversion.
fn try_into(
self
) -> Result<MaximumTimeInterval, <Self as TryInto<MaximumTimeInterval>>::Error>
fn try_into(
self
) -> Result<MaximumTimeInterval, <Self as TryInto<MaximumTimeInterval>>::Error>
Performs the conversion.
Performs the conversion.
fn try_into(
self
) -> Result<MedianAbsoluteDeviation, <Self as TryInto<MedianAbsoluteDeviation>>::Error>
fn try_into(
self
) -> Result<MedianAbsoluteDeviation, <Self as TryInto<MedianAbsoluteDeviation>>::Error>
Performs the conversion.
fn try_into(
self
) -> Result<MedianBufferRangePercentage<T>, <Self as TryInto<MedianBufferRangePercentage<T>>>::Error>
fn try_into(
self
) -> Result<MedianBufferRangePercentage<T>, <Self as TryInto<MedianBufferRangePercentage<T>>>::Error>
Performs the conversion.
fn try_into(
self
) -> Result<MinimumTimeInterval, <Self as TryInto<MinimumTimeInterval>>::Error>
fn try_into(
self
) -> Result<MinimumTimeInterval, <Self as TryInto<MinimumTimeInterval>>::Error>
Performs the conversion.
Performs the conversion.
Performs the conversion.
fn try_into(
self
) -> Result<PercentDifferenceMagnitudePercentile, <Self as TryInto<PercentDifferenceMagnitudePercentile>>::Error>
fn try_into(
self
) -> Result<PercentDifferenceMagnitudePercentile, <Self as TryInto<PercentDifferenceMagnitudePercentile>>::Error>
Performs the conversion.
fn try_into(
self
) -> Result<Periodogram<T, Self>, <Self as TryInto<Periodogram<T, Self>>>::Error>
fn try_into(
self
) -> Result<Periodogram<T, Self>, <Self as TryInto<Periodogram<T, Self>>>::Error>
Performs the conversion.
Performs the conversion.
Performs the conversion.
fn try_into(
self
) -> Result<TimeStandardDeviation, <Self as TryInto<TimeStandardDeviation>>::Error>
fn try_into(
self
) -> Result<TimeStandardDeviation, <Self as TryInto<TimeStandardDeviation>>::Error>
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Feature<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Feature<T> where
T: UnwindSafe,
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.