Function opendp::transformations::make_unordered
source · pub fn make_unordered<D, MI>(
domain: D
) -> Fallible<Transformation<D, D, MI, MI::UnorderedMetric>>where
D: Domain,
D::Carrier: Clone,
MI: OrderedMetric<Distance = IntDistance>,
(D, MI): MetricSpace,
(D, MI::UnorderedMetric): MetricSpace,
Expand description
Make a Transformation that converts the ordered dataset metric MI
to the respective ordered dataset metric with a no-op.
MI | MI::UnorderedMetric |
---|---|
InsertDeleteDistance | SymmetricDistance |
HammingDistance | ChangeOneDistance |
Generics
D
- DomainMI
- Input Metric