libtcspc.MapToBins¶
- final class libtcspc.MapToBins(bin_mapper, numeric_traits=None)[source]¶
Bases:
NodeProcessor that maps datapoint events to bin increment events.
Each
DatapointEventis mapped to aBinIncrementEventby the bin mapper (or discarded if the bin mapper rejects it); other events pass through.- Parameters:
bin_mapper (BinMapper) – The bin mapper mapping datapoints to bin indices.
numeric_traits (NumericTraits or None) – Numeric traits for the events. Defaults to
NumericTraits().
Notes
Events handled:
DatapointEvent: emit aBinIncrementEvent(unless discarded).All other event types: pass through unchanged.
End of input: pass through.
See also
- tcspc::map_to_bins()
The underlying C++ factory function.