Struct augurs_seasons::PeriodogramDetector
source · pub struct PeriodogramDetector { /* private fields */ }
Expand description
A season detector which uses a periodogram to identify seasonal periods.
The detector works by calculating a robust periodogram of the data using Welch’s method. The peaks in the periodogram represent likely seasonal periods in the data.
Implementations§
source§impl Detector
impl Detector
sourcepub fn periodogram(&self, data: &[f64]) -> Periodogram
pub fn periodogram(&self, data: &[f64]) -> Periodogram
Calculate the periodogram of the data.
The periodogram is a frequency domain representation of the data, and is calculated using the Welch method.
The periodogram can then be used to identify peaks, which are returned as periods which correspond to likely seasonal periods in the data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Detector
impl RefUnwindSafe for Detector
impl Send for Detector
impl Sync for Detector
impl Unpin for Detector
impl UnwindSafe for Detector
Blanket Implementations§
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> 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