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: AmplitudeTuple Fields of AndersonDarlingNormal
Tuple Fields of BazinFit
0: BazinFitTuple Fields of BeyondNStd
0: BeyondNStd<T>Tuple Fields of Bins
0: Bins<T, Self>Tuple Fields of Cusum
0: CusumTuple Fields of Eta
0: EtaTuple Fields of EtaE
0: EtaETuple Fields of ExcessVariance
Tuple Fields of InterPercentileRange
Tuple Fields of Kurtosis
0: KurtosisTuple Fields of LinearFit
0: LinearFitTuple Fields of LinearTrend
0: LinearTrendTuple Fields of MagnitudePercentageRatio
Tuple Fields of MaximumSlope
0: MaximumSlopeTuple Fields of Mean
0: MeanTuple Fields of MeanVariance
0: MeanVarianceTuple Fields of Median
0: MedianTuple 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: ReducedChi2Tuple Fields of Skew
0: SkewTuple Fields of StandardDeviation
Tuple Fields of StetsonK
0: StetsonKTuple Fields of VillarFit
0: VillarFitTuple Fields of WeightedMean
0: WeightedMeanTuple Fields of Duration
0: DurationTuple Fields of MaximumTimeInterval
Tuple Fields of MinimumTimeInterval
Tuple Fields of ObservationCount
Tuple Fields of TimeMean
0: TimeMeanTuple 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.