Skip to main content

scale

Function scale 

Source
pub fn scale(
    points: &[Vec<f64>],
    lower: &[f64],
    upper: &[f64],
    reverse: bool,
) -> Result<Vec<Vec<f64>>, ErrorsJSL>
Expand description

Maps points from the unit cube to the box [lower, upper] (SciPy’s qmc.scale), or back when reverse.