Module folsom_sample_uniform

erlang implementation of a uniform random sample based on a java implementation by coda hale, which can be found at:.

Authors: joe williams (j@boundary.com).

Description

erlang implementation of a uniform random sample based on a java implementation by coda hale, which can be found at:

https://github.com/codahale/metrics/blob/development/src/main/java/com/yammer/metrics/core/UniformSample.java

that implementation is based on algorithm R in:

http://www.cs.umd.edu/~samir/498/vitter.pdf

Function Index

get_values/1
new/1
update/2

Function Details

get_values/1

get_values(Uniform) -> any()

new/1

new(Size) -> any()

update/2

update(Uniform, Value) -> any()


Generated by EDoc