libtcspc C++ API
Streaming TCSPC and time tag data processing
Loading...
Searching...
No Matches

Description

Bin mappers for use with tcspc::map_to_bins.

Bin mappers define the following members:

  • [[nodiscard]] auto n_bins() const -> std::size_t, which returns the number of bins to which datapoints are mapped, and
  • auto operator()(datapoint_type d) -> std::optional<bin_index_type>, where datapoint_type and bin_index_type must match the tcspc::map_to_bins() processor's DataTypes. This function call operator maps the datapoint d to a bin index.

(n_bins() is provided for convenience and is not used by tcspc::map_to_bins. Thus, any invokable, such as a lambda, can be used as a bin mapper.)

Classes

class  tcspc::linear_bin_mapper< DataTypes >
 Bin mapper for linear histograms of arbitrary size. More...
struct  tcspc::power_of_2_bin_mapper< NDataBits, NHistoBits, Flip, DataTypes >
 Bin mapper that discards the least significant bits. More...
class  tcspc::unique_bin_mapper< DataTypes >
 Bin mapper that maps unique datapoints to consecutive bin indices. More...