21#ifndef __stir_data_SinglesRatesForTimeFrames_H__
22#define __stir_data_SinglesRatesForTimeFrames_H__
49 float get_singles(
int singles_bin_index,
unsigned int frame_number)
const;
59 float get_singles(
const int singles_bin_index,
const double start_time,
const double end_time)
const override;
68 void set_singles(
const int singles_bin_index,
const unsigned time_frame_num,
const float new_singles);
defines the stir::Array class for multi-dimensional (numeric) arrays
Declaration of class stir::SinglesRates.
Declaration of class stir::TimeFrameDefinitions.
This class defines multi-dimensional (numeric) arrays.
Definition Array.h:78
A single frame of singles information.
Definition SinglesRates.h:46
SinglesRatesForTimeFrames()
Default constructor.
Definition SinglesRatesForTimeFrames.cxx:26
FrameSinglesRates STIR_DEPRECATED get_rates_for_frame(double start_time, double end_time) const
Generate a FramesSinglesRate - containing the average rates.
void set_singles(const int singles_bin_index, const unsigned time_frame_num, const float new_singles)
Set a singles rate by singles bin index and time frame number.
Definition SinglesRatesForTimeFrames.cxx:36
const TimeFrameDefinitions & get_time_frame_definitions() const
Get the time frame definitions.
Definition SinglesRatesForTimeFrames.cxx:58
float get_singles(int singles_bin_index, unsigned int frame_number) const
get the singles for a particular singles unit and frame number.
Definition SinglesRatesForTimeFrames.cxx:30
unsigned int get_num_frames() const
Get the number of frames for which singles rates are recorded.
Definition SinglesRatesForTimeFrames.cxx:52
The base-class for using singles info.
Definition SinglesRates.h:113
virtual float get_singles(const int singles_bin_index, const double start_time, const double end_time) const =0
Get the number of singles for a particular singles unit and a frame with the specified start and end ...
Class used for storing time frame durations.
Definition TimeFrameDefinitions.h:39
This file declares a deprecation macro.
#define STIR_DEPRECATED
Deprecation macro.
Definition deprecated.h:21