opendp.core module#
- opendp.core.function_eval(this, arg, TI=None)[source]#
Eval the
function
witharg
.function_eval in Rust documentation.
- Parameters:
this (Function) – Function to invoke.
arg (Any) – Input data to supply to the measurement. A member of the measurement’s input domain.
TI (str) – Input Type.
- Return type:
Any
- 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.core.measurement_check(measurement, distance_in, distance_out)[source]#
Check the privacy relation of the
measurement
at the givend_in
,d_out
measurement_check in Rust documentation.
- Parameters:
measurement (Measurement) – Measurement to check the privacy relation of.
distance_in (Any) –
distance_out (Any) –
- Returns:
True indicates that the relation passed at the given distance.
- 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.core.measurement_function(this)[source]#
Get the function from a measurement.
measurement_function in Rust documentation.
- Parameters:
this (Measurement) – The measurement to retrieve the value from.
- Return type:
- 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.core.measurement_input_carrier_type(this)[source]#
Get the input (carrier) data type of
this
.measurement_input_carrier_type in Rust documentation.
- Parameters:
this (Measurement) – The measurement 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.core.measurement_input_distance_type(this)[source]#
Get the input distance type of
measurement
.measurement_input_distance_type in Rust documentation.
- Parameters:
this (Measurement) – The measurement 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.core.measurement_input_domain(this)[source]#
Get the input domain from a
measurement
.measurement_input_domain in Rust documentation.
- Parameters:
this (Measurement) – The measurement to retrieve the value from.
- 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.core.measurement_input_metric(this)[source]#
Get the input domain from a
measurement
.measurement_input_metric in Rust documentation.
- Parameters:
this (Measurement) – The measurement to retrieve the value from.
- 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.core.measurement_invoke(this, arg)[source]#
Invoke the
measurement
witharg
. Returns a differentially private release.measurement_invoke in Rust documentation.
- Parameters:
this (Measurement) – Measurement to invoke.
arg (Any) – Input data to supply to the measurement. A member of the measurement’s input domain.
- Return type:
Any
- 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.core.measurement_map(measurement, distance_in)[source]#
Use the
measurement
to map a givend_in
tod_out
.measurement_map in Rust documentation.
- Parameters:
measurement (Measurement) – Measurement to check the map distances with.
distance_in (Any) – Distance in terms of the input metric.
- Return type:
Any
- 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.core.measurement_output_distance_type(this)[source]#
Get the output distance type of
measurement
.measurement_output_distance_type in Rust documentation.
- Parameters:
this (Measurement) – The measurement 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.core.measurement_output_measure(this)[source]#
Get the output domain from a
measurement
.measurement_output_measure in Rust documentation.
- Parameters:
this (Measurement) – The measurement to retrieve the value from.
- 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.core.queryable_eval(queryable, query)[source]#
Invoke the
queryable
withquery
. Returns a differentially private release.queryable_eval in Rust documentation.
- Parameters:
queryable (Any) – Queryable to eval.
query (Any) – Input data to supply to the measurement. A member of the measurement’s input domain.
- Return type:
Any
- 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.core.queryable_query_type(this)[source]#
Get the query type of
queryable
.queryable_query_type in Rust documentation.
- Parameters:
this (Any) – The queryable to retrieve the query 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.core.transformation_check(transformation, distance_in, distance_out)[source]#
Check the privacy relation of the
measurement
at the givend_in
,d_out
transformation_check in Rust documentation.
- Parameters:
transformation (Transformation) –
distance_in (Any) –
distance_out (Any) –
- Returns:
True indicates that the relation passed at the given distance.
- 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.core.transformation_function(this)[source]#
Get the function from a transformation.
transformation_function in Rust documentation.
- Parameters:
this (Transformation) – The transformation to retrieve the value from.
- Return type:
- 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.core.transformation_input_carrier_type(this)[source]#
Get the input (carrier) data type of
this
.transformation_input_carrier_type in Rust documentation.
- Parameters:
this (Transformation) – The transformation 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.core.transformation_input_distance_type(this)[source]#
Get the input distance type of
transformation
.transformation_input_distance_type in Rust documentation.
- Parameters:
this (Transformation) – The transformation 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.core.transformation_input_domain(this)[source]#
Get the input domain from a
transformation
.transformation_input_domain in Rust documentation.
- Parameters:
this (Transformation) – The transformation to retrieve the value from.
- 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.core.transformation_input_metric(this)[source]#
Get the input domain from a
transformation
.transformation_input_metric in Rust documentation.
- Parameters:
this (Transformation) – The transformation to retrieve the value from.
- 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.core.transformation_invoke(this, arg)[source]#
Invoke the
transformation
witharg
. Returns a differentially private release.transformation_invoke in Rust documentation.
- Parameters:
this (Transformation) – Transformation to invoke.
arg (Any) – Input data to supply to the transformation. A member of the transformation’s input domain.
- Return type:
Any
- 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.core.transformation_map(transformation, distance_in)[source]#
Use the
transformation
to map a givend_in
tod_out
.transformation_map in Rust documentation.
- Parameters:
transformation (Transformation) – Transformation to check the map distances with.
distance_in (Any) – Distance in terms of the input metric.
- Return type:
Any
- 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.core.transformation_output_distance_type(this)[source]#
Get the output distance type of
transformation
.transformation_output_distance_type in Rust documentation.
- Parameters:
this (Transformation) – The transformation 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.core.transformation_output_domain(this)[source]#
Get the output domain from a
transformation
.transformation_output_domain in Rust documentation.
- Parameters:
this (Transformation) – The transformation to retrieve the value from.
- 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.core.transformation_output_metric(this)[source]#
Get the output domain from a
transformation
.transformation_output_metric in Rust documentation.
- Parameters:
this (Transformation) – The transformation to retrieve the value from.
- 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