Learn R Programming

CDF.PSIdekick (version 1.2)

smoothVector2: Enforce monotnocity on a vector.

Description

Forces DP-CDFs into the nearest monotonic vector (by euclidean distance minimization).

Usage

smoothVector2(cdf)

Arguments

cdf
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 monotonically increasing vector which is the post-processed DP-CDF's Y coordinates

Examples

Run this code
smoothVector2(c(.1,.2,.3,.2,.3,.3,.3,.3,1))

Run the code above in your browser using DataLab