libtcspc.LinearBinMapper¶
- class libtcspc.LinearBinMapper(offset, bin_width, max_bin_index, clamp=False, numeric_traits=None)[source]¶
Bases:
BinMapperBin mapper that maps datapoints to bins of equal width.
- Parameters:
offset (int or Param[int]) – Datapoint value mapped to the start of bin 0.
bin_width (int or Param[int]) – Width of each bin in datapoint units. May be negative to reverse the mapping.
max_bin_index (int or Param[int]) – Largest bin index (the histogram has
max_bin_index + 1bins).clamp (bool) – If
True, datapoints outside the range are clamped to the first or last bin instead of discarded. DefaultFalse.numeric_traits (NumericTraits or None) – Numeric traits specifying
datapoint_typeandbin_index_type. Defaults toNumericTraits().
See also
- tcspc::linear_bin_mapper
The underlying C++ bin mapper.