Class BoundedSum.Params.Builder
- java.lang.Object
-
- com.google.privacy.differentialprivacy.BoundedSum.Params.Builder
-
- Enclosing class:
- BoundedSum.Params
public abstract static class BoundedSum.Params.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BoundedSumbuild()abstract BoundedSum.Params.Builderdelta(java.lang.Double value)Delta DP parameter.abstract BoundedSum.Params.Builderepsilon(double value)Epsilon DP parameter.abstract BoundedSum.Params.Builderlower(double value)Lower bound for the entries added to the sum.abstract BoundedSum.Params.BuildermaxPartitionsContributed(int value)Maximum number of partitions to which a single privacy unit (i.e., an individual) is allowed to contribute.abstract BoundedSum.Params.Buildernoise(Noise value)Distribution from which the noise will be generated and added to the sum.abstract BoundedSum.Params.Builderupper(double value)Upper bound for the entries added to the sum.
-
-
-
Method Detail
-
epsilon
public abstract BoundedSum.Params.Builder epsilon(double value)
Epsilon DP parameter.
-
delta
public abstract BoundedSum.Params.Builder delta(@Nullable java.lang.Double value)
Delta DP parameter.Note that Laplace noise does not use delta. Hence, delta should not be set when Laplace noise is used.
-
maxPartitionsContributed
public abstract BoundedSum.Params.Builder maxPartitionsContributed(int value)
Maximum number of partitions to which a single privacy unit (i.e., an individual) is allowed to contribute.
-
noise
public abstract BoundedSum.Params.Builder noise(Noise value)
Distribution from which the noise will be generated and added to the sum.
-
lower
public abstract BoundedSum.Params.Builder lower(double value)
Lower bound for the entries added to the sum. Any entires smaller than this value will be set to this value.
-
upper
public abstract BoundedSum.Params.Builder upper(double value)
Upper bound for the entries added to the sum. Any entires greater than this value will be set to this value.
-
build
public BoundedSum build()
-
-