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;
 
   84 #endif //__POWDERPATTERNBACKGROUNDBAYESIANMINIMISER_H 
virtual const string & GetClassName() const 
Name for this class ("RefinableObj", "Crystal",...). 
Phase to compute a background contribution to a powder pattern using an interpolation. 
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 & GetLSQWeight(const unsigned int) const 
Get the weight values for the LSQ function. 
Generic Refinable Object. 
static REAL BayesianBackgroundLogLikelihood(const REAL t)
Returns the log(likelihood) of a background by marginalizing the effect of Bragg peaks, following the method described by David and Sivia (J.Appl.Cryst. 
CrystVector_REAL mBayesianCalc
Bayesian cost (-log(likelihood)) for each point. 
CrystVector_REAL mBayesianObs
Obs==0 (desired -log(likelihood)) 
virtual const CrystVector_REAL & GetLSQCalc(const unsigned int) const 
Get the current calculated value for the LSQ function. 
virtual const CrystVector_REAL & GetLSQObs(const unsigned int) const 
Get the observed values for the LSQ function. 
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++. 
This object is used to estimate the background in a powder pattern, using a Bayesian approach (David ...
CrystVector_REAL mBayesianWeight
Weight=1.