Struct fractal::Beta
[−]
[src]
pub struct Beta { /* fields omitted */ }
A multifractal wavelet model with beta-distributed multipliers.
Methods
impl Beta
[src]
fn new(data: &[f64], blocks: usize) -> Result<Beta>
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.
fn with_scales(data: &[f64], scales: usize) -> Result<Beta>
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.
fn sample<S>(&self, source: &mut S) -> Result<Vec<f64>> where
S: Source,
S: Source,
Draw a sample.