Skip to main content

sample_reference_projection

Function sample_reference_projection 

Source
pub fn sample_reference_projection(
    d: usize,
    k: usize,
    rng: &mut impl Rng,
) -> Result<Vec<f64>>
Expand description

Sample by normalizing a Gaussian in R^d and projecting the first k coordinates.