19#ifndef rtkSchlomka2008NegativeLogLikelihood_h
20#define rtkSchlomka2008NegativeLogLikelihood_h
100 vnl_vector<double> attenuationFactors;
103 vnl_vector<double> lambdas =
ForwardModel(lineIntegrals);
106 vnl_vector<double> weights;
112 vnl_vector<double> intermediate_a;
113 vnl_vector<double> partial_derivative_a;
122 derivatives[a] = dot_product(partial_derivative_a, weights);
133 long double measure = 0;
136 measure += forward[i] - std::log(
static_cast<long double>(forward[i])) *
m_MeasuredData[i];
144 vnl_vector<double> attenuationFactors;
147 vnl_vector<double> lambdas =
ForwardModel(lineIntegrals);
150 vnl_vector<double> weights;
156 vnl_vector<double> intermediate_a;
157 vnl_vector<double> intermediate_a_prime;
158 vnl_vector<double> partial_derivative_a;
159 vnl_vector<double> partial_derivative_a_prime;
175 partial_derivative_a_prime = element_product(partial_derivative_a, partial_derivative_a_prime);
176 m_Fischer[a][a_prime] = dot_product(partial_derivative_a_prime, weights);
Implements transparent reference counting.
MeasuredDataType m_MeasuredData
MaterialAttenuationsType m_MaterialAttenuations
Superclass::MeasureType MeasureType
DetectorResponseType m_DetectorResponse
Superclass::ParametersType ParametersType
IncidentSpectrumType m_IncidentSpectrum
unsigned int m_NumberOfEnergies
vnl_matrix< double > DetectorResponseType
vnl_matrix< double > MaterialAttenuationsType
virtual vnl_vector< double > ForwardModel(const ParametersType &lineIntegrals) const
vnl_matrix< float > IncidentSpectrumType
vnl_matrix< double > m_IncidentSpectrumAndDetectorResponseProduct
unsigned int m_NumberOfMaterials
itk::VariableSizeMatrix< float > m_Fischer
void GetAttenuationFactors(const ParametersType &lineIntegrals, vnl_vector< double > &attenuationFactors) const
unsigned int m_NumberOfSpectralBins
itk::VariableLengthVector< double > MeasuredDataType
Superclass::DerivativeType DerivativeType
itk::SmartPointer< const Self > ConstPointer
Schlomka2008NegativeLogLikelihood Self
MeasureType GetValue(const ParametersType ¶meters) const override
Superclass::MeasuredDataType MeasuredDataType
void GetDerivative(const ParametersType &lineIntegrals, DerivativeType &derivatives) const override
Superclass::IncidentSpectrumType IncidentSpectrumType
Superclass::MaterialAttenuationsType MaterialAttenuationsType
void ComputeFischerMatrix(const ParametersType &lineIntegrals) override
itk::SmartPointer< Self > Pointer
Superclass::DerivativeType DerivativeType
void Initialize() override
Schlomka2008NegativeLogLikelihood()
rtk::ProjectionsDecompositionNegativeLogLikelihood Superclass
Superclass::DetectorResponseType DetectorResponseType
~Schlomka2008NegativeLogLikelihood() override=default
Superclass::ParametersType ParametersType
Superclass::MeasureType MeasureType