Interface ReservoirCellSelector
-
- All Known Implementing Classes:
HistogramExemplarReservoir.HistogramCellSelector
,RandomFixedSizeExemplarReservoir.RandomCellSelector
interface ReservoirCellSelector
Selects whichFixedSizeExemplarReservoir
ReservoirCell
receives measurements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
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 Detail
-
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()
-
-