Function opendp::trans::impute::make_impute_constant [−][src]
pub fn make_impute_constant<DA>(
constant: DA::Imputed
) -> Fallible<Transformation<VectorDomain<DA>, VectorDomain<AllDomain<DA::Imputed>>, SymmetricDistance, SymmetricDistance>> where
DA: ImputableDomain,
DA::Imputed: 'static + Clone + CheckNull,
DA::Carrier: 'static,
Expand description
A Transformation
that imputes elementwise with a constant value.
Maps a Vec<Option