[−][src]Struct light_curve_feature::Periodogram
A number of features based on Lomb–Scargle periodogram
Periodogram $P(\omega)$ is an estimate of spectral density of unevenly time series.
Periodogram::new
's peaks
argument corresponds to a number of the most significant spectral
density peaks to return. For each peak its period and "signal to noise" ratio is returned.
$$ \mathrm{signal~to~noise~of~peak} \equiv \frac{P(\omega_\mathrm{peak}) - \langle P(\omega) \rangle}{\sigma_{P(\omega)}}. $$
Periodogram
can accept another dyn FeatureEvaluator
for feature extraction from periodogram
as it was time series without observation errors. You can even pass one Periodogram
to another
one if you are crazy enough
- Depends on: time, magnitude
- Minimum number of observations: 2
- Number of features: $2 \times \mathrm{peaks}~+...$
Implementations
impl<T> Periodogram<T> where
T: Float,
[src]
T: Float,
pub fn new(peaks: usize) -> Self
[src]
New Periodogram that finds given number of peaks
pub fn set_freq_resolution(&mut self, resolution: f32) -> &mut Self
[src]
Set frequency resolution
The larger frequency resolution allows to find peak period with better precision
pub fn set_max_freq_factor(&mut self, max_freq_factor: f32) -> &mut Self
[src]
Multiply maximum (Nyquist) frequency
Maximum frequency is Nyquist frequncy multiplied by this factor. The larger factor allows to find larger frequency and makes PeriodogramPowerFft more precise. However large frequencies can show false peaks
pub fn set_nyquist(&mut self, nyquist: Box<dyn NyquistFreq<T>>) -> &mut Self
[src]
Define Nyquist frequency
pub fn add_features(&mut self, features: VecFE<T>) -> &mut Self
[src]
Extend a list of features to extract from periodogram
pub fn set_periodogram_algorithm(
&mut self,
periodogram_power: fn() -> Box<dyn PeriodogramPower<T>>
) -> &mut Self
[src]
&mut self,
periodogram_power: fn() -> Box<dyn PeriodogramPower<T>>
) -> &mut Self
pub fn init_thread_local_fft_plan(n: &[usize])
[src]
pub fn power(&self, ts: &mut TimeSeries<'_, '_, '_, T>) -> Vec<T>
[src]
pub fn freq_power(&self, ts: &mut TimeSeries<'_, '_, '_, T>) -> (Vec<T>, Vec<T>)
[src]
Trait Implementations
impl<T: Clone + Float> Clone for Periodogram<T>
[src]
fn clone(&self) -> Periodogram<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Default for Periodogram<T> where
T: Float,
[src]
T: Float,
impl<T> FeatureEvaluator<T> for Periodogram<T> where
T: Float,
[src]
T: Float,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Periodogram<T>
impl<T> Send for Periodogram<T>
impl<T> Sync for Periodogram<T>
impl<T> Unpin for Periodogram<T>
impl<T> !UnwindSafe for Periodogram<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
[src]
Scheme: ApproxScheme,
type Err = NoError
The error type produced by a failed conversion.
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
[src]
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
[src]
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, Dst> ConvAsUtil<Dst> for T
[src]
fn approx(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
[src]
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Scheme: ApproxScheme,
Self: ApproxInto<Dst, Scheme>,
[src]
Scheme: ApproxScheme,
Self: ApproxInto<Dst, Scheme>,
impl<T> ConvUtil for T
[src]
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
[src]
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Scheme: ApproxScheme,
Self: ApproxInto<Dst, Scheme>,
[src]
Scheme: ApproxScheme,
Self: ApproxInto<Dst, Scheme>,
fn into_as<Dst>(self) -> Dst where
Self: Into<Dst>,
[src]
Self: Into<Dst>,
fn try_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: TryInto<Dst>,
[src]
Self: TryInto<Dst>,
fn value_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ValueInto<Dst>,
[src]
Self: ValueInto<Dst>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<Src> TryFrom<Src> for Src
[src]
type Err = NoError
The error type produced by a failed conversion.
fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<Src, Dst> TryInto<Dst> for Src where
Dst: TryFrom<Src>,
[src]
Dst: TryFrom<Src>,
type Err = <Dst as TryFrom<Src>>::Err
The error type produced by a failed conversion.
fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Src> ValueFrom<Src> for Src
[src]
type Err = NoError
The error type produced by a failed conversion.
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
[src]
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
[src]
Dst: ValueFrom<Src>,