pub struct CorrelationMatrixGenerator;Expand description
Generates random correlation matrices using the vine method.
A correlation matrix is symmetric positive semi-definite with ones on the diagonal and off-diagonal entries in [-1, 1]. The vine method generates partial correlations uniformly and constructs a valid correlation matrix.
Implementations§
Source§impl CorrelationMatrixGenerator
impl CorrelationMatrixGenerator
Sourcepub fn generate(dim: usize, seed: u64) -> RandResult<RandomMatrix>
pub fn generate(dim: usize, seed: u64) -> RandResult<RandomMatrix>
Auto Trait Implementations§
impl Freeze for CorrelationMatrixGenerator
impl RefUnwindSafe for CorrelationMatrixGenerator
impl Send for CorrelationMatrixGenerator
impl Sync for CorrelationMatrixGenerator
impl Unpin for CorrelationMatrixGenerator
impl UnsafeUnpin for CorrelationMatrixGenerator
impl UnwindSafe for CorrelationMatrixGenerator
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