Learn R Programming

CDF.PSIdekick (version 1.2)

getMaxError: Determine an approximate CDF's maximum error.

Description

Find the maximum direct error between a non-private CDF and a DP approximation of that CDF.

Usage

getMaxError(Y, est, ...)

Arguments

Y
The vector output of a non-differentially private CDF computation (cumulative count bins)
est
The vector output of a differentially private CDF computation (cumulative count bins)
...
Optionally add additional parameters. This is primarily used to allow automated execution of varied diagnostic functions.

Value

A single value, the largest absolute vertical difference between parallel observations in the private- and true-CDF vectors.

Examples

Run this code
getMaxError(c(.1,.2,.3,.4,.5,.6,.7,.8,.9,1), c(.1,.2,.3,.3,.3,.3,.3,.3,.4,1))

Run the code above in your browser using DataLab