Constructor and Description |
---|
ReservoirSampler() |
ReservoirSampler(int numSpots) |
Modifier and Type | Method and Description |
---|---|
double |
getKPercentile(int k) |
void |
insertSample(double sample) |
void |
reset() |
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 © 2022 JBoss, a division of Red Hat. All rights reserved.