Function smartnoise_runtime::components::resize::resize_integer [−][src]
pub fn resize_integer(
data: ArrayD<Integer>,
resize_config: RowResizeConfig,
number_cols: Option<i64>,
lower: ArrayD<Integer>,
upper: ArrayD<Integer>,
privacy_definition: &Option<PrivacyDefinition>
) -> Result<ArrayD<Integer>>
Resizes data (made up exclusively of i64) based on estimate of n and true size of data.
Arguments
data
- The data to be resizedn
- An estimate of the size of the data – this could be the guess of the user, or the result of a DP releaselower
- A lower bound on data elementsupper
- An upper bound on data elements
Return
A resized version of data consistent with the provided n