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

pub fn resize_categorical<T>(
    data: ArrayD<T>,
    resize_config: RowResizeConfig,
    number_cols: Option<i64>,
    categories: Vec<Vec<T>>,
    weights: Option<Vec<Vec<Float>>>,
    privacy_definition: &Option<PrivacyDefinition>
) -> Result<ArrayD<T>> where
    T: Clone + PartialEq + Default + Ord + Hash

Resizes categorical data based on estimate of n and true size of data.

Arguments

Return

A resized version of data consistent with the provided n