opendp.measures module#
- opendp.measures.fixed_smoothed_max_divergence(T)[source]#
Construct an instance of the
FixedSmoothedMaxDivergence
measure.fixed_smoothed_max_divergence in Rust documentation.
- Parameters:
T (Type Argument) –
- Raises:
TypeError – if an argument’s type differs from the expected type
UnknownTypeError – if a type argument fails to parse
OpenDPException – packaged error from the core OpenDP library
- opendp.measures.max_divergence(T)[source]#
Construct an instance of the
MaxDivergence
measure.max_divergence in Rust documentation.
- Parameters:
T (Type Argument) –
- Raises:
TypeError – if an argument’s type differs from the expected type
UnknownTypeError – if a type argument fails to parse
OpenDPException – packaged error from the core OpenDP library
- opendp.measures.measure_debug(this)[source]#
Debug a
measure
.measure_debug in Rust documentation.
- Parameters:
this – The measure to debug (stringify).
- Return type:
str
- Raises:
TypeError – if an argument’s type differs from the expected type
UnknownTypeError – if a type argument fails to parse
OpenDPException – packaged error from the core OpenDP library
- opendp.measures.measure_distance_type(this)[source]#
Get the distance type of a
measure
.measure_distance_type in Rust documentation.
- Parameters:
this – The measure to retrieve the distance type from.
- Return type:
str
- Raises:
TypeError – if an argument’s type differs from the expected type
UnknownTypeError – if a type argument fails to parse
OpenDPException – packaged error from the core OpenDP library
- opendp.measures.measure_type(this)[source]#
Get the type of a
measure
.measure_type in Rust documentation.
- Parameters:
this – The measure to retrieve the type from.
- Return type:
str
- Raises:
TypeError – if an argument’s type differs from the expected type
UnknownTypeError – if a type argument fails to parse
OpenDPException – packaged error from the core OpenDP library
- opendp.measures.smoothed_max_divergence(T)[source]#
Construct an instance of the
SmoothedMaxDivergence
measure.smoothed_max_divergence in Rust documentation.
- Parameters:
T (Type Argument) –
- Raises:
TypeError – if an argument’s type differs from the expected type
UnknownTypeError – if a type argument fails to parse
OpenDPException – packaged error from the core OpenDP library
- opendp.measures.zero_concentrated_divergence(T)[source]#
Construct an instance of the
ZeroConcentratedDivergence
measure.zero_concentrated_divergence in Rust documentation.
- Parameters:
T (Type Argument) –
- Raises:
TypeError – if an argument’s type differs from the expected type
UnknownTypeError – if a type argument fails to parse
OpenDPException – packaged error from the core OpenDP library