pub struct MedianAbsoluteDeviation {}
Expand description
Median of the absolute value of the difference between magnitude and its median
$$ \mathrm{median~absolute~deviation} \equiv \mathrm{Median}\left(|m_i - \mathrm{Median}(m)|\right). $$
- Depends on: magnitude
- Minimum number of observations: 1
- Number of features: 1
D’Isanto et al. 2016 DOI:10.1093/mnras/stw157
Implementations§
Trait Implementations§
Source§impl Clone for MedianAbsoluteDeviation
impl Clone for MedianAbsoluteDeviation
Source§fn clone(&self) -> MedianAbsoluteDeviation
fn clone(&self) -> MedianAbsoluteDeviation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MedianAbsoluteDeviation
impl Debug for MedianAbsoluteDeviation
Source§impl Default for MedianAbsoluteDeviation
impl Default for MedianAbsoluteDeviation
Source§fn default() -> MedianAbsoluteDeviation
fn default() -> MedianAbsoluteDeviation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MedianAbsoluteDeviation
impl<'de> Deserialize<'de> for MedianAbsoluteDeviation
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 EvaluatorInfoTrait for MedianAbsoluteDeviation
impl EvaluatorInfoTrait for MedianAbsoluteDeviation
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 MedianAbsoluteDeviationwhere
T: Float,
impl<T> FeatureEvaluator<T> for MedianAbsoluteDeviationwhere
T: Float,
Source§fn eval(&self, ts: &mut TimeSeries<'_, T>) -> Result<Vec<T>, EvaluatorError>
fn eval(&self, ts: &mut TimeSeries<'_, T>) -> Result<Vec<T>, EvaluatorError>
Vector of feature values or
EvaluatorError
Source§fn eval_or_fill(&self, ts: &mut TimeSeries<'_, T>, fill_value: T) -> Vec<T>
fn eval_or_fill(&self, ts: &mut TimeSeries<'_, T>, fill_value: T) -> Vec<T>
Returns vector of feature values and fill invalid components with given value
Source§fn check_ts_length(
&self,
ts: &TimeSeries<'_, T>,
) -> Result<usize, EvaluatorError>
fn check_ts_length( &self, ts: &TimeSeries<'_, T>, ) -> Result<usize, EvaluatorError>
Checks if TimeSeries has enough points to evaluate the feature
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 JsonSchema for MedianAbsoluteDeviation
impl JsonSchema for MedianAbsoluteDeviation
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 Serialize for MedianAbsoluteDeviation
impl Serialize for MedianAbsoluteDeviation
Auto Trait Implementations§
impl Freeze for MedianAbsoluteDeviation
impl RefUnwindSafe for MedianAbsoluteDeviation
impl Send for MedianAbsoluteDeviation
impl Sync for MedianAbsoluteDeviation
impl Unpin for MedianAbsoluteDeviation
impl UnwindSafe for MedianAbsoluteDeviation
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,
Source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more