23 #ifndef __POWDERPATTERNBACKGROUNDBAYESIANMINIMISER_H
24 #define __POWDERPATTERNBACKGROUNDBAYESIANMINIMISER_H
26 #include "ObjCryst/CrystVector/CrystVector.h"
27 #include "ObjCryst/RefinableObj/RefinableObj.h"
28 #include "ObjCryst/ObjCryst/PowderPattern.h"
44 virtual const CrystVector_REAL &
GetLSQCalc (
const unsigned int)
const;
45 virtual const CrystVector_REAL &
GetLSQObs (
const unsigned int)
const;
46 virtual const CrystVector_REAL &
GetLSQWeight (
const unsigned int)
const;
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++.
Phase to compute a background contribution to a powder pattern using an interpolation.
This object is used to estimate the background in a powder pattern, using a Bayesian approach (David ...
virtual const CrystVector_REAL & GetLSQCalc(const unsigned int) const
Get the current calculated value for the LSQ function.
CrystVector_REAL mBayesianObs
Obs==0 (desired -log(likelihood))
CrystVector_REAL mBayesianCalc
Bayesian cost (-log(likelihood)) for each point.
CrystVector_REAL mBayesianWeight
Weight=1.
virtual const CrystVector_REAL & GetLSQWeight(const unsigned int) const
Get the weight values for the LSQ function.
static REAL BayesianBackgroundLogLikelihood(const REAL t)
Returns the log(likelihood) of a background by marginalizing the effect of Bragg peaks,...
virtual REAL GetLogLikelihood() const
Get -log(likelihood) of the current configuration for the object.
virtual unsigned int GetNbLSQFunction() const
Number of LSQ functions.
virtual const CrystVector_REAL & GetLSQObs(const unsigned int) const
Get the observed values for the LSQ function.
virtual const string & GetClassName() const
Name for this class ("RefinableObj", "Crystal",...).
Generic Refinable Object.