Enum light_curve_feature::Feature
source · #[non_exhaustive]pub enum Feature<T>where
T: Float,{
Show 40 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),
LinexpFit(LinexpFit),
MagnitudePercentageRatio(MagnitudePercentageRatio),
MaximumSlope(MaximumSlope),
MaximumTimeInterval(MaximumTimeInterval),
MinimumTimeInterval(MinimumTimeInterval),
Mean(Mean),
MeanVariance(MeanVariance),
Median(Median),
MedianAbsoluteDeviation(MedianAbsoluteDeviation),
MedianBufferRangePercentage(MedianBufferRangePercentage<T>),
ObservationCount(ObservationCount),
OtsuSplit(OtsuSplit),
PercentAmplitude(PercentAmplitude),
PercentDifferenceMagnitudePercentile(PercentDifferenceMagnitudePercentile),
Periodogram(Periodogram<T, Self>),
_PeriodogramPeaks(_PeriodogramPeaks),
ReducedChi2(ReducedChi2),
Skew(Skew),
StandardDeviation(StandardDeviation),
StetsonK(StetsonK),
TimeMean(TimeMean),
TimeStandardDeviation(TimeStandardDeviation),
Transformed(Transformed<T, Self, Transformer<T>>),
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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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)
LinexpFit(LinexpFit)
MagnitudePercentageRatio(MagnitudePercentageRatio)
MaximumSlope(MaximumSlope)
MaximumTimeInterval(MaximumTimeInterval)
MinimumTimeInterval(MinimumTimeInterval)
Mean(Mean)
MeanVariance(MeanVariance)
Median(Median)
MedianAbsoluteDeviation(MedianAbsoluteDeviation)
MedianBufferRangePercentage(MedianBufferRangePercentage<T>)
ObservationCount(ObservationCount)
OtsuSplit(OtsuSplit)
PercentAmplitude(PercentAmplitude)
PercentDifferenceMagnitudePercentile(PercentDifferenceMagnitudePercentile)
Periodogram(Periodogram<T, Self>)
_PeriodogramPeaks(_PeriodogramPeaks)
ReducedChi2(ReducedChi2)
Skew(Skew)
StandardDeviation(StandardDeviation)
StetsonK(StetsonK)
TimeMean(TimeMean)
TimeStandardDeviation(TimeStandardDeviation)
Transformed(Transformed<T, Self, Transformer<T>>)
VillarFit(VillarFit)
WeightedMean(WeightedMean)
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Feature<T>where
T: Float,
impl<'de, T> Deserialize<'de> for Feature<T>where
T: Float,
source§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
source§impl<T> EvaluatorInfoTrait for Feature<T>where
T: Float,
impl<T> EvaluatorInfoTrait for Feature<T>where
T: Float,
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Size of vectors returned by eval(), get_names() and get_descriptions()
source§fn min_ts_length(&self) -> usize
fn min_ts_length(&self) -> usize
Minimum time series length required to successfully evaluate feature
source§fn is_t_required(&self) -> bool
fn is_t_required(&self) -> bool
If time array used by the feature
source§fn is_m_required(&self) -> bool
fn is_m_required(&self) -> bool
If magnitude array is used by the feature
source§fn is_w_required(&self) -> bool
fn is_w_required(&self) -> bool
If weight array is used by the feature
source§fn is_sorting_required(&self) -> bool
fn is_sorting_required(&self) -> bool
If feature requires time-sorting on the input TimeSeries
source§impl<T> FeatureEvaluator<T> for Feature<T>where
T: Float,
impl<T> FeatureEvaluator<T> for Feature<T>where
T: Float,
source§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
source§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
source§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
source§impl<T> FeatureNamesDescriptionsTrait for Feature<T>where
T: Float,
impl<T> FeatureNamesDescriptionsTrait for Feature<T>where
T: Float,
source§impl<T> From<AndersonDarlingNormal> for Feature<T>where
T: Float,
impl<T> From<AndersonDarlingNormal> for Feature<T>where
T: Float,
source§fn from(v: AndersonDarlingNormal) -> Feature<T>
fn from(v: AndersonDarlingNormal) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<BeyondNStd<T>> for Feature<T>where
T: Float,
impl<T> From<BeyondNStd<T>> for Feature<T>where
T: Float,
source§fn from(v: BeyondNStd<T>) -> Feature<T>
fn from(v: BeyondNStd<T>) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<ExcessVariance> for Feature<T>where
T: Float,
impl<T> From<ExcessVariance> for Feature<T>where
T: Float,
source§fn from(v: ExcessVariance) -> Feature<T>
fn from(v: ExcessVariance) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<FeatureExtractor<T, Feature<T>>> for Feature<T>where
T: Float,
impl<T> From<FeatureExtractor<T, Feature<T>>> for Feature<T>where
T: Float,
source§fn from(v: FeatureExtractor<T, Self>) -> Feature<T>
fn from(v: FeatureExtractor<T, Self>) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<InterPercentileRange> for Feature<T>where
T: Float,
impl<T> From<InterPercentileRange> for Feature<T>where
T: Float,
source§fn from(v: InterPercentileRange) -> Feature<T>
fn from(v: InterPercentileRange) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<LinearTrend> for Feature<T>where
T: Float,
impl<T> From<LinearTrend> for Feature<T>where
T: Float,
source§fn from(v: LinearTrend) -> Feature<T>
fn from(v: LinearTrend) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<MagnitudePercentageRatio> for Feature<T>where
T: Float,
impl<T> From<MagnitudePercentageRatio> for Feature<T>where
T: Float,
source§fn from(v: MagnitudePercentageRatio) -> Feature<T>
fn from(v: MagnitudePercentageRatio) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<MaximumSlope> for Feature<T>where
T: Float,
impl<T> From<MaximumSlope> for Feature<T>where
T: Float,
source§fn from(v: MaximumSlope) -> Feature<T>
fn from(v: MaximumSlope) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<MaximumTimeInterval> for Feature<T>where
T: Float,
impl<T> From<MaximumTimeInterval> for Feature<T>where
T: Float,
source§fn from(v: MaximumTimeInterval) -> Feature<T>
fn from(v: MaximumTimeInterval) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<MeanVariance> for Feature<T>where
T: Float,
impl<T> From<MeanVariance> for Feature<T>where
T: Float,
source§fn from(v: MeanVariance) -> Feature<T>
fn from(v: MeanVariance) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<MedianAbsoluteDeviation> for Feature<T>where
T: Float,
impl<T> From<MedianAbsoluteDeviation> for Feature<T>where
T: Float,
source§fn from(v: MedianAbsoluteDeviation) -> Feature<T>
fn from(v: MedianAbsoluteDeviation) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<MedianBufferRangePercentage<T>> for Feature<T>where
T: Float,
impl<T> From<MedianBufferRangePercentage<T>> for Feature<T>where
T: Float,
source§fn from(v: MedianBufferRangePercentage<T>) -> Feature<T>
fn from(v: MedianBufferRangePercentage<T>) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<MinimumTimeInterval> for Feature<T>where
T: Float,
impl<T> From<MinimumTimeInterval> for Feature<T>where
T: Float,
source§fn from(v: MinimumTimeInterval) -> Feature<T>
fn from(v: MinimumTimeInterval) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<ObservationCount> for Feature<T>where
T: Float,
impl<T> From<ObservationCount> for Feature<T>where
T: Float,
source§fn from(v: ObservationCount) -> Feature<T>
fn from(v: ObservationCount) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<PercentAmplitude> for Feature<T>where
T: Float,
impl<T> From<PercentAmplitude> for Feature<T>where
T: Float,
source§fn from(v: PercentAmplitude) -> Feature<T>
fn from(v: PercentAmplitude) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<PercentDifferenceMagnitudePercentile> for Feature<T>where
T: Float,
impl<T> From<PercentDifferenceMagnitudePercentile> for Feature<T>where
T: Float,
source§fn from(v: PercentDifferenceMagnitudePercentile) -> Feature<T>
fn from(v: PercentDifferenceMagnitudePercentile) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<Periodogram<T, Feature<T>>> for Feature<T>where
T: Float,
impl<T> From<Periodogram<T, Feature<T>>> for Feature<T>where
T: Float,
source§fn from(v: Periodogram<T, Self>) -> Feature<T>
fn from(v: Periodogram<T, Self>) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<ReducedChi2> for Feature<T>where
T: Float,
impl<T> From<ReducedChi2> for Feature<T>where
T: Float,
source§fn from(v: ReducedChi2) -> Feature<T>
fn from(v: ReducedChi2) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<StandardDeviation> for Feature<T>where
T: Float,
impl<T> From<StandardDeviation> for Feature<T>where
T: Float,
source§fn from(v: StandardDeviation) -> Feature<T>
fn from(v: StandardDeviation) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<TimeStandardDeviation> for Feature<T>where
T: Float,
impl<T> From<TimeStandardDeviation> for Feature<T>where
T: Float,
source§fn from(v: TimeStandardDeviation) -> Feature<T>
fn from(v: TimeStandardDeviation) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<Transformed<T, Feature<T>, Transformer<T>>> for Feature<T>where
T: Float,
impl<T> From<Transformed<T, Feature<T>, Transformer<T>>> for Feature<T>where
T: Float,
source§fn from(v: Transformed<T, Self, Transformer<T>>) -> Feature<T>
fn from(v: Transformed<T, Self, Transformer<T>>) -> Feature<T>
Converts to this type from the input type.
source§impl<T> From<WeightedMean> for Feature<T>where
T: Float,
impl<T> From<WeightedMean> for Feature<T>where
T: Float,
source§fn from(v: WeightedMean) -> Feature<T>
fn from(v: WeightedMean) -> Feature<T>
Converts to this type from the input type.
source§impl<T> JsonSchema for Feature<T>where
T: Float + JsonSchema,
impl<T> JsonSchema for Feature<T>where
T: Float + JsonSchema,
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl<T> TryInto<Transformed<T, Feature<T>, Transformer<T>>> for Feature<T>where
T: Float,
impl<T> TryInto<Transformed<T, Feature<T>, Transformer<T>>> for Feature<T>where
T: Float,
source§fn try_into(
self
) -> Result<Transformed<T, Self, Transformer<T>>, <Self as TryInto<Transformed<T, Self, Transformer<T>>>>::Error>
fn try_into( self ) -> Result<Transformed<T, Self, Transformer<T>>, <Self as TryInto<Transformed<T, Self, Transformer<T>>>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl<T> RefUnwindSafe for Feature<T>where
T: RefUnwindSafe,
impl<T> Send for Feature<T>
impl<T> Sync for Feature<T>
impl<T> Unpin for Feature<T>where
T: Unpin,
impl<T> UnwindSafe for Feature<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
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.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.