Class BoundedMean.Params.Builder
- java.lang.Object
-
- com.google.privacy.differentialprivacy.BoundedMean.Params.Builder
-
- Enclosing class:
- BoundedMean.Params
public abstract static class BoundedMean.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 BoundedMeanbuild()abstract BoundedMean.Params.Builderdelta(java.lang.Double value)Delta DP parameter.abstract BoundedMean.Params.Builderepsilon(double value)Epsilon DP parameter.abstract BoundedMean.Params.Builderlower(double value)Lower bound for the entries added to the mean.abstract BoundedMean.Params.BuildermaxContributionsPerPartition(int value)Max contributions per partition from a single privacy unit (e.g., an individual).abstract BoundedMean.Params.BuildermaxPartitionsContributed(int value)Maximum number of partitions that a single privacy unit (e.g., an individual) is allowed to contribute to.abstract BoundedMean.Params.Buildernoise(Noise value)Noise that will be used to make the mean differentially private.abstract BoundedMean.Params.Builderupper(double value)Upper bound for the entries added to the mean.
-
-
-
Method Detail
-
epsilon
public abstract BoundedMean.Params.Builder epsilon(double value)
Epsilon DP parameter.
-
delta
public abstract BoundedMean.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 BoundedMean.Params.Builder maxPartitionsContributed(int value)
Maximum number of partitions that a single privacy unit (e.g., an individual) is allowed to contribute to.
-
maxContributionsPerPartition
public abstract BoundedMean.Params.Builder maxContributionsPerPartition(int value)
Max contributions per partition from a single privacy unit (e.g., an individual).
-
noise
public abstract BoundedMean.Params.Builder noise(Noise value)
Noise that will be used to make the mean differentially private.
-
lower
public abstract BoundedMean.Params.Builder lower(double value)
Lower bound for the entries added to the mean. Any entires smaller than this value will be set to this value.
-
upper
public abstract BoundedMean.Params.Builder upper(double value)
Upper bound for the entries added to the mean. Any entires greater than this value will be set to this value.
-
build
public BoundedMean build()
-
-