|
STIR
6.3.0
|
A class for singles rates that are recorded in time frames. More...
#include "stir/data/SinglesRatesForTimeFrames.h"

Public Member Functions | |
| SinglesRatesForTimeFrames () | |
| Default constructor. | |
| float | get_singles (int singles_bin_index, unsigned int frame_number) const |
| get the singles for a particular singles unit and frame number. More... | |
| float | get_singles (const int singles_bin_index, const double start_time, const double end_time) const override |
| get the singles for a particular singles unit and a frame with the specified start and end times. More... | |
| 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. More... | |
| unsigned int | get_num_frames () const |
| Get the number of frames for which singles rates are recorded. | |
| const TimeFrameDefinitions & | get_time_frame_definitions () const |
| Get the time frame definitions. | |
Public Member Functions inherited from stir::SinglesRates | |
| virtual float | get_singles_rate (const int singles_bin_index, const double start_time, const double end_time) const |
| Get the (average) singles rate for a particular singles unit and a frame with the specified start and end times. More... | |
| virtual float | get_singles_rate (const DetectionPosition<> &det_pos, const double start_time, const double end_time) const |
| Virtual function that returns the average singles rate given the detection positions and time-interval of detection. More... | |
| virtual float | get_singles (const DetectionPosition<> &det_pos, const double start_time, const double end_time) const |
| Virtual function that returns the number of singles given the detection positions and time-interval of detection. More... | |
| const Scanner * | get_scanner_ptr () const |
| Get the scanner pointer. | |
Public Member Functions inherited from stir::RegisteredObjectBase | |
| virtual std::string | get_registered_name () const =0 |
| Returns the name of the type of the object. More... | |
Public Member Functions inherited from stir::ParsingObject | |
| ParsingObject (const ParsingObject &) | |
| ParsingObject & | operator= (const ParsingObject &) |
| void | ask_parameters () |
| virtual std::string | parameter_info () |
| bool | parse (std::istream &f) |
| bool | parse (const char *const filename) |
Protected Attributes | |
| Array< 2, float > | _singles |
| TimeFrameDefinitions | _time_frame_defs |
Protected Attributes inherited from stir::SinglesRates | |
| shared_ptr< Scanner > | scanner_sptr |
| Generate a FramesSinglesRate - containing the average rates. | |
Protected Attributes inherited from stir::ParsingObject | |
| KeyParser | parser |
Additional Inherited Members | |
Static Public Member Functions inherited from stir::RegisteredObject< SinglesRates > | |
| static SinglesRates * | read_registered_object (std::istream *in, const std::string ®istered_name) |
| Construct a new object (of a type derived from Root, its actual type determined by the registered_name parameter) by parsing the istream. More... | |
| static SinglesRates * | ask_type_and_parameters () |
| ask the user for the type, and then calls read_registered_object(0, type) More... | |
| static void | list_registered_names (std::ostream &stream) |
| List all possible registered names to the stream. More... | |
Protected Types inherited from stir::RegisteredObject< SinglesRates > | |
| typedef SinglesRates *(* | RootFactory) (std::istream *) |
| The type of a root factory is a function, taking an istream* as argument, and returning a Root*. | |
| typedef FactoryRegistry< std::string, RootFactory, interfile_less > | RegistryType |
| The type of the registry. | |
Protected Member Functions inherited from stir::ParsingObject | |
| virtual void | set_defaults () |
| Set defaults before parsing. | |
| virtual void | initialise_keymap () |
| Initialise all keywords. | |
| virtual bool | post_processing () |
| This will be called at the end of the parsing. More... | |
| virtual void | set_key_values () |
| This will be called before parsing or parameter_info is called. More... | |
Static Protected Member Functions inherited from stir::RegisteredObject< SinglesRates > | |
| static RegistryType & | registry () |
| Static function returning the registry. More... | |
A class for singles rates that are recorded in time frames.
| float stir::SinglesRatesForTimeFrames::get_singles | ( | int | singles_bin_index, |
| unsigned int | frame_number | ||
| ) | const |
get the singles for a particular singles unit and frame number.
The singles returned is the rate for a whole singles unit.
|
overridevirtual |
get the singles for a particular singles unit and a frame with the specified start and end times.
The singles returned is the rate for a whole singles unit.
Implements stir::SinglesRates.
| void stir::SinglesRatesForTimeFrames::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.
1.8.13