[][src]Struct fractal::Beta

pub struct Beta { /* fields omitted */ }

A multifractal wavelet model with beta-distributed multipliers.

Methods

impl Beta[src]

pub fn new(data: &[f64], blocks: usize) -> Result<Self>[src]

Fit the model to the data.

The number of points used for the analysis is blocks × 2^scales. The parameter blocks should be at least two, and it corresponds to the number of points used for the estimation of the mean and standard deviation of the underlying process. The parameter scales should be at least one, and it corresponds to the number of scales for which the data are analyzed. The number scales also dictates the size of a sample drawn by sample, namely, each sample contains 2^scales elements.

pub fn with_scales(data: &[f64], scales: usize) -> Result<Self>[src]

Fit the model to the data with a specific number of scales.

The function is identical to new except for specifying the number of scales instead of the number of blocks.

pub fn sample<S>(&self, source: &mut S) -> Result<Vec<f64>> where
    S: Source, 
[src]

Draw a sample.

Auto Trait Implementations

impl Send for Beta

impl Unpin for Beta

impl Sync for Beta

impl UnwindSafe for Beta

impl RefUnwindSafe for Beta

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]