| Constructor and Description |
|---|
ReservoirSampler() |
ReservoirSampler(int numSpots) |
public ReservoirSampler()
public ReservoirSampler(int numSpots)
public final void insertSample(double sample)
public final double getKPercentile(int k)
throws IllegalArgumentException
k - the percentage of observations. Should be a value between 0 and 100 exclusively.IllegalArgumentException - if k is not between 0 and 100 exclusively.public final void reset()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.