STIR
6.2.0
|
A base class for sums of 'generalised' objective functions, i.e. objective functions for which at least a 'gradient' is defined. More...
#include "stir/recon_buildblock/SumOfGeneralisedObjectiveFunctions.h"
Public Member Functions | |
template<typename IterT > | |
SumOfGeneralisedObjectiveFunctions (IterT begin, IterT end) | |
template<typename IterT > | |
void | set_functions (IterT begin, IterT end) |
virtual Succeeded | set_up (shared_ptr< TargetT > const &target_sptr) |
Has to be called before using this object. More... | |
virtual void | compute_sub_gradient_without_penalty (TargetT &gradient, const TargetT ¤t_estimate, const int subset_num) |
This computes the gradient of the unregularised objective function at the current_estimate. More... | |
virtual double | actual_compute_objective_function_without_penalty (const TargetT ¤t_estimate, const int subset_num) |
virtual int | set_num_subsets (const int num_subsets) |
Attempts to change the number of subsets. More... | |
Protected Types | |
typedef std::vector< ObjFuncT > | _functions_type |
typedef _functions_type::iterator | _functions_iterator_type |
typedef _functions_type::const_iterator | _functions_const_iterator_type |
Protected Member Functions | |
virtual bool | actual_subsets_are_approximately_balanced (std::string &warning_message) const |
Implementation of function that checks subset balancing. More... | |
Protected Attributes | |
_functions_type | _functions |
A base class for sums of 'generalised' objective functions, i.e. objective functions for which at least a 'gradient' is defined.
document why use of ParentT template
doc subsets
|
inlinevirtual |
|
inlinevirtual |
This computes the gradient of the unregularised objective function at the current_estimate.
It is computed as the sum of the subgradients for each term, depending on the subset scheme.
|
inlinevirtual |
Attempts to change the number of subsets.
Reimplemented in stir::PoissonLogLikelihoodWithLinearModelForMeanAndGatedProjDataWithMotion< TargetT >.
|
inlineprotectedvirtual |
Implementation of function that checks subset balancing.
Reimplemented in stir::PoissonLogLikelihoodWithLinearModelForMeanAndGatedProjDataWithMotion< TargetT >.