Interface ReservoirCellSelector
- All Known Implementing Classes:
HistogramExemplarReservoir.HistogramCellSelector, RandomFixedSizeExemplarReservoir.RandomCellSelector
interface ReservoirCellSelector
Selects which
FixedSizeExemplarReservoir ReservoirCell receives measurements.-
Method Summary
Modifier and TypeMethodDescriptionintreservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context) Determine the index of thecellsto record the measurement to.intreservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context) Determine the index of thecellsto record the measurement to.voidreset()
-
Method Details
-
reservoirCellIndexFor
int reservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context) Determine the index of thecellsto record the measurement to. -
reservoirCellIndexFor
int reservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context) Determine the index of thecellsto record the measurement to. -
reset
void reset()
-