pub struct MultivariateNormalQmc { /* private fields */ }Expand description
A generator of low-discrepancy multivariate normal samples: Sobol points mapped to standard normals, then correlated by a square root of the covariance.
Implementations§
Source§impl MultivariateNormalQmc
impl MultivariateNormalQmc
Sourcepub fn new(
mean: Vec<f64>,
cov: &[Vec<f64>],
inv_transform: bool,
engine: SobolSequence,
) -> Result<Self, ErrorsJSL>
pub fn new( mean: Vec<f64>, cov: &[Vec<f64>], inv_transform: bool, engine: SobolSequence, ) -> Result<Self, ErrorsJSL>
Samples from N(mean, cov) driven by engine, a Sobol sequence of dimension d (or
2⌈d/2⌉ with inv_transform = false), plain or scrambled. With inv_transform, each
coordinate is Φ⁻¹(½ + (1 − 10⁻¹⁰)(u − ½)) (SciPy’s default); otherwise pairs of
coordinates go through the Box-Muller transform. The covariance’s square root is its
Cholesky factor, or V √Λ from its eigendecomposition when it is only semidefinite.
Trait Implementations§
Source§impl Clone for MultivariateNormalQmc
impl Clone for MultivariateNormalQmc
Auto Trait Implementations§
impl Freeze for MultivariateNormalQmc
impl RefUnwindSafe for MultivariateNormalQmc
impl Send for MultivariateNormalQmc
impl Sync for MultivariateNormalQmc
impl Unpin for MultivariateNormalQmc
impl UnsafeUnpin for MultivariateNormalQmc
impl UnwindSafe for MultivariateNormalQmc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more