Function smartnoise_runtime::components::resize::resize_float[][src]

pub fn resize_float(
    data: ArrayD<Float>,
    resize_config: RowResizeConfig,
    number_cols: Option<i64>,
    distribution: &str,
    lower: ArrayD<Float>,
    upper: ArrayD<Float>,
    shift: Option<ArrayD<Float>>,
    scale: Option<ArrayD<Float>>,
    privacy_definition: &Option<PrivacyDefinition>
) -> Result<ArrayD<Float>>

Resizes data (made up exclusively of f64) based on estimate of n and true size of data.

Notice that some arguments are denoted with Option<> – this is because not every distribution used for imputation (if necessary) uses every argument (e.g. Uniform does not use shift or scale).

NOTE: If more distributions are added here, their corresponding arguments must be added as inputs.

Arguments

Return

A resized version of data consistent with the provided n