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