L2empiric: Calculate the empirical L2norm between two CDFs.

Description Usage Arguments Value Examples

View source: R/CDFtestingSuite.R

Description

Calculates the L2 (squared error) area between the non-private CDF and the dpCDF

Usage

1
L2empiric(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

The empirical L2 norm

Examples

1
L2empiric(c(.1,.2,.3,.4,.5,.6,.7,.8,.9,1), c(.1,.2,.3,.3,.3,.3,.3,.3,.4,1))

Example output

[1] 0.8944272

CDF.PSIdekick documentation built on May 30, 2017, 5:09 a.m.