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> -> Vec if input domain is AllDomain<Option>, or Vec -> Vec if input domain is NullableDomain<AllDomain> Type argument DA is “Domain of the Atom”; the domain type inside VectorDomain.