Enum light_curve_feature::feature::Feature [−][src]
#[non_exhaustive] pub enum Feature<T> where
T: Float, {}Show 36 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), WeightedMean(WeightedMean), Duration(Duration), MaximumTimeInterval(MaximumTimeInterval), MinimumTimeInterval(MinimumTimeInterval), ObservationCount(ObservationCount), TimeMean(TimeMean), TimeStandardDeviation(TimeStandardDeviation),
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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)
WeightedMean(WeightedMean)
Duration(Duration)
MaximumTimeInterval(MaximumTimeInterval)
MinimumTimeInterval(MinimumTimeInterval)
ObservationCount(ObservationCount)
TimeMean(TimeMean)
TimeStandardDeviation(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>
Should return the 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>
Should return the vector of feature values and fill invalid components with given value
Should return the vector of feature names. The length and feature order should
correspond to eval()
output
Shoud return the vector of feature descriptions. The length and feature order should
correspond to eval()
output
Should return the size of vectors returned by eval()
and get_names()
Should return minimum time series length to successfully find feature value
fn check_ts_length(
&self,
__enum_dispatch_arg_0: &TimeSeries<'_, T>
) -> Result<usize, EvaluatorError>
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.
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.
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.
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V