23 #ifndef __stir_data_SinglesRatesForTimeSlices_H__ 24 #define __stir_data_SinglesRatesForTimeSlices_H__ 45 float get_singles(
const int singles_bin_index,
const double start_time,
const double end_time)
const override;
70 virtual int get_end_time_slice_index(
double t)
const;
93 virtual int get_start_time_slice_index(
double t)
const;
100 int get_singles_rate(
int singles_bin_index,
int time_slice)
const;
102 void set_singles(
int singles_bin_index,
int time_slice,
int new_singles);
108 int rebin(std::vector<double>& new_end_times);
111 std::vector<double> get_times()
const;
116 int get_num_time_slices()
const;
119 double get_singles_time_interval()
const;
133 int _num_time_slices;
143 void set_time_interval();
146 double get_slice_start_time(
int slice_index)
const;
#define STIR_DEPRECATED
Deprecation macro.
Definition: deprecated.h:19
Class used for storing time frame durations.
Definition: TimeFrameDefinitions.h:38
Declaration of class stir::SinglesRates.
Declaration of class stir::TimeFrameDefinitions.
Array< 2, int > _singles
total singles per time slice and singles-bin
Definition: SinglesRatesForTimeSlices.h:127
std::vector< double > _times
end times of each time slice (in secs)
Definition: SinglesRatesForTimeSlices.h:131
A single frame of singles information.
Definition: SinglesRates.h:45
defines the Array class for multi-dimensional (numeric) arrays
double _singles_time_interval
time interval in secs
Definition: SinglesRatesForTimeSlices.h:140
A class for singles that are recorded at equal time intervals.
Definition: SinglesRatesForTimeSlices.h:37
The base-class for using singles info.
Definition: SinglesRates.h:112