Documentation ¶
Overview ¶
Package checks contains checks for differentially private functions.
Index ¶
- func CheckAlpha(label string, alpha float64) error
- func CheckBoundsFloat64(label string, lower, upper float64) error
- func CheckBoundsFloat64AsInt64(label string, lower, upper float64) error
- func CheckBoundsFloat64IgnoreOverflows(label string, lower, upper float64) error
- func CheckBoundsInt64(label string, lower, upper int64) error
- func CheckBoundsInt64IgnoreOverflows(label string, lower, upper int64) error
- func CheckBoundsNotEqual(label string, lower, upper float64) error
- func CheckBranchingFactor(label string, branchingFactor int) error
- func CheckConfidenceLevel(label string, confidenceLevel float64) error
- func CheckDelta(label string, delta float64) error
- func CheckDeltaStrict(label string, delta float64) error
- func CheckEpsilon(label string, epsilon float64) error
- func CheckEpsilonStrict(label string, epsilon float64) error
- func CheckEpsilonVeryStrict(label string, epsilon float64) error
- func CheckL0Sensitivity(label string, l0Sensitivity int64) error
- func CheckLInfSensitivity(label string, lInfSensitivity float64) error
- func CheckMaxPartitionsContributed(label string, maxPartitionsContributed int64) error
- func CheckNoDelta(label string, delta float64) error
- func CheckTreeHeight(label string, 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 CheckConfidenceLevel ¶
CheckConfidenceLevel returns an error if the supplied confidence level is not between 0 and 1.
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 CheckMaxPartitionsContributed ¶
CheckMaxPartitionsContributed returns an error if maxPartitionsContributed is nonpositive.
func CheckNoDelta ¶
CheckNoDelta returns an error if δ is non-zero.
func CheckTreeHeight ¶
CheckTreeHeight returns an error if treeHeight is less than 1.
Types ¶
This section is empty.