density.sketch: density sketch

Description Usage Arguments Details Value Author(s)

Description

For huge vectors, density can take a very long time.

Usage

1
  density.sketch(x, sketch = 10000, ...)

Arguments

x

a numeric vector

sketch

the number of values to randomly sample from x, only if length(x) > sketch

...

additional arguments passed to density

Details

Inspired by RMA-sketch which takes a subset of data points to determine the reference distribution, this method computes the density on a subset of data points from the original vector.

Value

see density

Author(s)

Mark Cowley, 2009-01-23


drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.