[−][src]Struct fractal::Beta
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]
S: Source,
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]
U: From<T>,
impl<T> From<T> for T
[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<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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,