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),
Bins(Bins<T, Self>),
BazinFit(BazinFit),
BeyondNStd(BeyondNStd<T>),
Cusum(Cusum),
Duration(Duration),
Eta(Eta),
EtaE(EtaE),
ExcessVariance(ExcessVariance),
InterPercentileRange(InterPercentileRange),
Kurtosis(Kurtosis),
LinearFit(LinearFit),
LinearTrend(LinearTrend),
MagnitudePercentageRatio(MagnitudePercentageRatio),
MaximumSlope(MaximumSlope),
MaximumTimeInterval(MaximumTimeInterval),
MinimumTimeInterval(MinimumTimeInterval),
Mean(Mean),
MeanVariance(MeanVariance),
Median(Median),
MedianAbsoluteDeviation(MedianAbsoluteDeviation),
MedianBufferRangePercentage(MedianBufferRangePercentage<T>),
ObservationCount(ObservationCount),
PercentAmplitude(PercentAmplitude),
PercentDifferenceMagnitudePercentile(PercentDifferenceMagnitudePercentile),
Periodogram(Periodogram<T, Self>),
_PeriodogramPeaks(_PeriodogramPeaks),
ReducedChi2(ReducedChi2),
Skew(Skew),
StandardDeviation(StandardDeviation),
StetsonK(StetsonK),
TimeMean(TimeMean),
TimeStandardDeviation(TimeStandardDeviation),
VillarFit(VillarFit),
WeightedMean(WeightedMean),
}
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
FeatureExtractor(FeatureExtractor<T, Self>)
Tuple Fields
0: FeatureExtractor<T, Self>
Amplitude(Amplitude)
Tuple Fields
0: Amplitude
AndersonDarlingNormal(AndersonDarlingNormal)
Tuple Fields
Bins(Bins<T, Self>)
Tuple Fields
0: Bins<T, Self>
BazinFit(BazinFit)
Tuple Fields
0: BazinFit
BeyondNStd(BeyondNStd<T>)
Tuple Fields
0: BeyondNStd<T>
Cusum(Cusum)
Tuple Fields
0: Cusum
Duration(Duration)
Tuple Fields
0: Duration
Eta(Eta)
Tuple Fields
0: Eta
EtaE(EtaE)
Tuple Fields
0: EtaE
ExcessVariance(ExcessVariance)
Tuple Fields
InterPercentileRange(InterPercentileRange)
Tuple Fields
Kurtosis(Kurtosis)
Tuple Fields
0: Kurtosis
LinearFit(LinearFit)
Tuple Fields
0: LinearFit
LinearTrend(LinearTrend)
Tuple Fields
0: LinearTrend
MagnitudePercentageRatio(MagnitudePercentageRatio)
Tuple Fields
MaximumSlope(MaximumSlope)
Tuple Fields
0: MaximumSlope
MaximumTimeInterval(MaximumTimeInterval)
Tuple Fields
MinimumTimeInterval(MinimumTimeInterval)
Tuple Fields
Mean(Mean)
Tuple Fields
0: Mean
MeanVariance(MeanVariance)
Tuple Fields
0: MeanVariance
Median(Median)
Tuple Fields
0: Median
MedianAbsoluteDeviation(MedianAbsoluteDeviation)
Tuple Fields
MedianBufferRangePercentage(MedianBufferRangePercentage<T>)
Tuple Fields
ObservationCount(ObservationCount)
Tuple Fields
PercentAmplitude(PercentAmplitude)
Tuple Fields
PercentDifferenceMagnitudePercentile(PercentDifferenceMagnitudePercentile)
Tuple Fields
Periodogram(Periodogram<T, Self>)
Tuple Fields
0: Periodogram<T, Self>
_PeriodogramPeaks(_PeriodogramPeaks)
ReducedChi2(ReducedChi2)
Tuple Fields
0: ReducedChi2
Skew(Skew)
Tuple Fields
0: Skew
StandardDeviation(StandardDeviation)
Tuple Fields
StetsonK(StetsonK)
Tuple Fields
0: StetsonK
TimeMean(TimeMean)
Tuple Fields
0: TimeMean
TimeStandardDeviation(TimeStandardDeviation)
Tuple Fields
VillarFit(VillarFit)
Tuple Fields
0: VillarFit
WeightedMean(WeightedMean)
Tuple Fields
0: WeightedMean
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
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 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
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.