Documentation ¶
Overview ¶
Package checks contains checks for differentially private functions.
Index ¶
- func CheckAlpha(alpha float64) error
- func CheckBoundsFloat64(lower, upper float64) error
- func CheckBoundsFloat64AsInt64(lower, upper float64) error
- func CheckBoundsFloat64IgnoreOverflows(lower, upper float64) error
- func CheckBoundsInt64(lower, upper int64) error
- func CheckBoundsInt64IgnoreOverflows(lower, upper int64) error
- func CheckBoundsNotEqual(lower, upper float64) error
- func CheckBranchingFactor(branchingFactor int) error
- func CheckDelta(delta float64, name ...string) error
- func CheckDeltaStrict(delta float64, name ...string) error
- func CheckEpsilon(epsilon float64, name ...string) error
- func CheckEpsilonStrict(epsilon float64, name ...string) error
- func CheckEpsilonVeryStrict(epsilon float64, name ...string) error
- func CheckL0Sensitivity(l0Sensitivity int64) error
- func CheckLInfSensitivity(lInfSensitivity float64) error
- func CheckMaxContributionsPerPartition(maxContributionsPerPartition int64) error
- func CheckNoDelta(delta float64, name ...string) error
- func CheckPreThreshold(preThreshold int64) error
- func CheckThresholdDelta(thresholdDelta, noiseDelta float64) error
- func CheckTreeHeight(treeHeight int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAlpha ¶
CheckAlpha returns an error if the supplied alpha is not between 0 and 1.
func CheckBoundsFloat64 ¶
CheckBoundsFloat64 returns an error if lower is larger than upper, or if either parameter is ±∞.
func CheckBoundsFloat64AsInt64 ¶
CheckBoundsFloat64AsInt64 returns an error if lower is larger are NaN, or if either parameter overflow after conversion to int64.
func CheckBoundsFloat64IgnoreOverflows ¶
CheckBoundsFloat64IgnoreOverflows returns an error if lower is larger than upper but accepts either parameter being ±∞.
func CheckBoundsInt64 ¶
CheckBoundsInt64 returns an error if lower is larger than upper, and ensures it won't lead to sensitivity overflow.
func CheckBoundsInt64IgnoreOverflows ¶
CheckBoundsInt64IgnoreOverflows returns an error if lower is larger than upper but ignores sensitivity overflows. This is used when noise is unrecognised.
func CheckBoundsNotEqual ¶
CheckBoundsNotEqual returns an error if lower and upper bounds are equal.
func CheckBranchingFactor ¶
CheckBranchingFactor returns an error if branchingFactor is less than 2.
func CheckDelta ¶
CheckDelta returns an error if δ is negative or greater than or equal to 1.
func CheckDeltaStrict ¶
CheckDeltaStrict returns an error if δ is nonpositive or greater than or equal to 1.
func CheckEpsilon ¶
CheckEpsilon returns an error if ε is strictly negative or +∞.
func CheckEpsilonStrict ¶
CheckEpsilonStrict returns an error if ε is nonpositive or +∞.
func CheckEpsilonVeryStrict ¶
CheckEpsilonVeryStrict returns an error if ε is +∞ or less than 2⁻⁵⁰.
func CheckL0Sensitivity ¶
CheckL0Sensitivity returns an error if l0Sensitivity is nonpositive.
func CheckLInfSensitivity ¶
CheckLInfSensitivity returns an error if lInfSensitivity is nonpositive or +∞.
func CheckMaxContributionsPerPartition ¶
CheckMaxContributionsPerPartition returns an error if maxContributionsPerPartition is nonpositive.
func CheckNoDelta ¶
CheckNoDelta returns an error if δ is non-zero.
func CheckPreThreshold ¶
CheckPreThreshold returns an error if preThreshold is less than 0.
func CheckThresholdDelta ¶
CheckThresholdDelta returns an error if δ_threshold is nonpositive or greater than or equal to 1 or δ_threshold+δ_noise is greater than or equal to 1.
func CheckTreeHeight ¶
CheckTreeHeight returns an error if treeHeight is less than 1.
Types ¶
This section is empty.