3232//!
3333//! ```rust
3434//! use stochastic::diffusion::BrownianMotion;
35- //! use stochastic::Sampling ;
35+ //! use stochastic::SamplingExt ;
3636//!
3737//! let bm = BrownianMotion::new(0.0, 1.0, 1.0, 1000);
3838//! let path = bm.sample();
@@ -78,7 +78,7 @@ pub const S0: f64 = 100.0;
7878pub const K : f64 = 100.0 ;
7979
8080/// Trait for 1D sampling of stochastic processes
81- pub trait Sampling < T : Clone + Send + Sync + Zero > : Send + Sync {
81+ pub trait SamplingExt < T : Clone + Send + Sync + Zero > : Send + Sync {
8282 /// Sample the process
8383 fn sample ( & self ) -> Array1 < T > ;
8484
@@ -124,7 +124,7 @@ pub trait Sampling<T: Clone + Send + Sync + Zero>: Send + Sync {
124124}
125125
126126/// Trait for sampling vector-valued stochastic processes
127- pub trait SamplingVector < T : Clone + Send + Sync + Zero > : Send + Sync {
127+ pub trait SamplingVExt < T : Clone + Send + Sync + Zero > : Send + Sync {
128128 /// Sample the vector process
129129 fn sample ( & self ) -> Array2 < T > ;
130130
@@ -147,7 +147,7 @@ pub trait SamplingVector<T: Clone + Send + Sync + Zero>: Send + Sync {
147147}
148148
149149/// Trait for 2D sampling of stochastic processes
150- pub trait Sampling2D < T : Clone + Send + Sync + Zero > : Send + Sync {
150+ pub trait Sampling2DExt < T : Clone + Send + Sync + Zero > : Send + Sync {
151151 /// Sample the process
152152 fn sample ( & self ) -> [ Array1 < T > ; 2 ] ;
153153
@@ -190,7 +190,7 @@ pub trait Sampling2D<T: Clone + Send + Sync + Zero>: Send + Sync {
190190}
191191
192192/// Trait for 3D sampling of stochastic processes
193- pub trait Sampling3D < T : Clone + Send + Sync + Zero > : Send + Sync {
193+ pub trait Sampling3DExt < T : Clone + Send + Sync + Zero > : Send + Sync {
194194 /// Sample the process
195195 fn sample ( & self ) -> [ Array1 < T > ; 3 ] ;
196196
@@ -207,7 +207,7 @@ pub trait Sampling3D<T: Clone + Send + Sync + Zero>: Send + Sync {
207207}
208208
209209/// Provides analytical functions of the distribution (pdf, cdf, etc)
210- pub trait Distribution {
210+ pub trait DistributionExt {
211211 /// Characteristic function of the distribution
212212 fn characteristic_function ( & self , _t : f64 ) -> Complex64 {
213213 Complex64 :: new ( 0.0 , 0.0 )
0 commit comments