Function opendp::transformations::cast_metric::make_metric_unbounded
source · pub fn make_metric_unbounded<D, MI>(
input_domain: D,
input_metric: MI
) -> Fallible<Transformation<D, D, MI, MI::UnboundedMetric>>where
D: IsSizedDomain,
D::Carrier: Clone,
MI: BoundedMetric<Distance = IntDistance>,
(D, MI): MetricSpace,
(D, MI::UnboundedMetric): MetricSpace,
Expand description
Make a Transformation that converts the bounded dataset metric MI
to the respective unbounded dataset metric with a no-op.
MI | MI::UnboundedMetric |
---|---|
ChangeOneDistance | SymmetricDistance |
HammingDistance | InsertDeleteDistance |
Arguments
size
- Number of records in input data.
Generics
D
- Domain. The function is a no-op so input and output domains are the same.MI
- Input Metric.