20 #ifndef __stir_recon_buildblock_SumOfGeneralisedObjectiveFunctions_H__ 21 #define __stir_recon_buildblock_SumOfGeneralisedObjectiveFunctions_H__ 37 template <
typename ObjFuncT,
typename TargetT,
typename ParentT = GeneralisedObjectiveFunction<TargetT>>
40 typedef ParentT base_type;
46 template <
typename IterT>
51 template <
typename IterT>
52 inline void set_functions(IterT begin, IterT end);
61 construct_target_ptr()
const;
68 inline virtual Succeeded set_up(shared_ptr<TargetT>
const& target_sptr);
74 compute_sub_gradient_without_penalty(TargetT& gradient,
const TargetT& current_estimate,
const int subset_num);
76 inline virtual double actual_compute_objective_function_without_penalty(
const TargetT& current_estimate,
const int subset_num);
81 inline virtual int set_num_subsets(
const int num_subsets);
84 typedef std::vector<ObjFuncT> _functions_type;
85 typedef typename _functions_type::iterator _functions_iterator_type;
86 typedef typename _functions_type::const_iterator _functions_const_iterator_type;
87 _functions_type _functions;
92 inline virtual bool actual_subsets_are_approximately_balanced(std::string& warning_message)
const;
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast (or corresponding b...
Declaration of class stir::GeneralisedObjectiveFunction.
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
Implementation of class stir::SumOfGeneralisedObjectiveFunctions.
A base class for sums of 'generalised' objective functions, i.e. objective functions for which at lea...
Definition: SumOfGeneralisedObjectiveFunctions.h:38