[−][src]Struct light_curve_feature::periodogram::Periodogram
Lamb-Scargle periodogram calculator on uniform frequency grid
Frequencies are given by $\omega = {\min\omega..\max\omega}$: $N_\omega$ nodes with step $\Delta\omega$: $\min\omega = \Delta\omega$, $\max\omega = N_\omega \Delta\omega$.
Parameters of the grid can be derived from time series properties: typical time interval
$\delta t$ and duration of observation. The idea is to set maximum frequency to Nyquist
value $\pi / \Delta t$ and minimum frequency to $2\pi / \mathrm{duration}$, while nyquist
and
resolution
factors are used to widen this interval:
$$
\max\omega = N_\omega \Delta\omega = \frac{\pi}{\Delta t},
$$
$$
\min\omega = \Delta\omega = \frac{2\pi}{\mathrm{resolution} \times \mathrm{duration}}.
$$
Implementations
impl<T> Periodogram<T> where
T: Float,
[src]
T: Float,
pub fn new(
periodogram_power: Box<dyn PeriodogramPower<T>>,
freq_grid: FreqGrid<T>
) -> Self
[src]
periodogram_power: Box<dyn PeriodogramPower<T>>,
freq_grid: FreqGrid<T>
) -> Self
pub fn set_periodogram_power(
&mut self,
periodogram_power: Box<dyn PeriodogramPower<T>>
) -> &mut Self
[src]
&mut self,
periodogram_power: Box<dyn PeriodogramPower<T>>
) -> &mut Self
pub fn init_thread_local_fft_plans(n: &[usize])
[src]
pub fn from_t(
periodogram_power: Box<dyn PeriodogramPower<T>>,
t: &[T],
resolution: f32,
max_freq_factor: f32,
nyquist: &Box<dyn NyquistFreq<T>>
) -> Self
[src]
periodogram_power: Box<dyn PeriodogramPower<T>>,
t: &[T],
resolution: f32,
max_freq_factor: f32,
nyquist: &Box<dyn NyquistFreq<T>>
) -> Self
pub fn freq(&self, i: usize) -> T
[src]
pub fn power(&self, ts: &mut TimeSeries<T>) -> Vec<T>
[src]
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> where
T: Unpin,
T: Unpin,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,