[][src]Struct ornstein_uhlenbeck::OrnsteinUhlenbeckProcessBuilder

pub struct OrnsteinUhlenbeckProcessBuilder { /* fields omitted */ }

The builder for a process which uses default values for ommited parameters.

use ornstein_uhlenbeck::OrnsteinUhlenbeckProcessBuilder;
let ou_process = OrnsteinUhlenbeckProcessBuilder::default().build((2, 2));

let ou_process = OrnsteinUhlenbeckProcessBuilder::default()
   .mu(0.0)
   .theta(0.15)
   .max_sigma(0.3)
   .min_sigma(0.3)
   .decay_period(100_000)
   .build((2, 2));

Implementations

impl OrnsteinUhlenbeckProcessBuilder[src]

pub fn mu(&mut self, mu: f64) -> &mut Self[src]

Sets the mean for this process. Defaults to 0.0.

pub fn theta(&mut self, theta: f64) -> &mut Self[src]

Sets the speed for this process. Defaults to 0.15.

pub fn max_sigma(&mut self, max_sigma: f64) -> &mut Self[src]

Sets the maximum volatility of the Wiener process. Defaults to 0.3.

pub fn min_sigma(&mut self, min_sigma: f64) -> &mut Self[src]

Sets the minimum volatility for the Wiener process. Defaults to 0.3.

pub fn decay_period(&mut self, decay_period: u64) -> &mut Self[src]

Sets the decay period for this process. Defaults to 100 000.

pub fn build<D: Dimension, Sh: ShapeBuilder<Dim = D>>(
    &self,
    shape: Sh
) -> OrnsteinUhlenbeckProcess<D>
[src]

Builds the Ornstein-Uhlenbeck process with unset parameters set to default values.

Trait Implementations

impl Clone for OrnsteinUhlenbeckProcessBuilder[src]

impl Debug for OrnsteinUhlenbeckProcessBuilder[src]

impl Default for OrnsteinUhlenbeckProcessBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,