smoothVector2: Enforce monotnocity on a vector.

Description Usage Arguments Value Examples

View source: R/CDFtestingSuite.R

Description

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

Usage

1

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

1
smoothVector2(c(.1,.2,.3,.2,.3,.3,.3,.3,1))

Example output

[1] 0.10 0.20 0.25 0.25 0.30 0.30 0.30 0.30 1.00

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