libtcspc.MapToBins

final class libtcspc.MapToBins(bin_mapper, numeric_traits=None)[source]

Bases: Node

Processor that maps datapoint events to bin increment events.

Each DatapointEvent is mapped to a BinIncrementEvent by 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:

See also

tcspc::map_to_bins()

The underlying C++ factory function.