Skip to contents

Make a Measurement that implements randomized response on a boolean value.

Usage

make_randomized_response_bool(prob, constant_time = FALSE)

Arguments

prob

Probability of returning the correct answer. Must be in [0.5, 1)

constant_time

Set to true to enable constant time. Slower.

Value

Measurement

Details

Required features: contrib

make_randomized_response_bool in Rust documentation.

Supporting Elements:

  • Input Domain: AtomDomain<bool>

  • Output Type: bool

  • Input Metric: DiscreteDistance

  • Output Measure: MaxDivergence

Proof Definition:

(Proof Document)