Inheritance diagram for ObjCryst::PowderPatternBackground:
Public Member Functions | |
PowderPatternBackground () | |
PowderPatternBackground (const PowderPatternBackground &) | |
virtual | ~PowderPatternBackground () |
virtual const string & | GetClassName () const |
Name for this class ("RefinableObj", "Crystal",...). | |
virtual void | SetParentPowderPattern (const PowderPattern &) |
Set the PowderPattern object which uses this component. | |
virtual const CrystVector_REAL & | GetPowderPatternCalc () const |
Get the calculated powder pattern for this component. | |
virtual pair< const CrystVector_REAL *, const RefinableObjClock * > | GetPowderPatternIntegratedCalc () const |
Get the integrated values of the powder pattern. | |
void | ImportUserBackground (const string &filename) |
Import background points from a file (with two columns 2theta (or tof), intensity). | |
void | SetInterpPoints (const CrystVector_REAL tth, const CrystVector_REAL backgd) |
const std::pair< const CrystVector_REAL *, const CrystVector_REAL * > | GetInterpPoints () const |
virtual void | XMLOutput (ostream &os, int indent=0) const |
Output to stream in well-formed XML. | |
virtual void | XMLInput (istream &is, const XMLCrystTag &tag) |
Input From stream. | |
virtual void | GetGeneGroup (const RefinableObj &obj, CrystVector_uint &groupIndex, unsigned int &firstGroup) const |
Get the gene group assigned to each parameter. | |
virtual const CrystVector_REAL & | GetPowderPatternCalcVariance () const |
Get the variance associated to each point of the calculated powder pattern, for this component. | |
virtual pair< const CrystVector_REAL *, const RefinableObjClock * > | GetPowderPatternIntegratedCalcVariance () const |
Get the variance associated to each point of the calculated powder pattern, for this component (integrated version). | |
virtual bool | HasPowderPatternCalcVariance () const |
Does this component have a variance associated with each calculated point ? i.e., do we use maximum likelihood to take into account incomplete models ? | |
virtual void | TagNewBestConfig () const |
During a global optimization, tells the object that the current config is the latest "best" config. | |
void | OptimizeBayesianBackground () |
Optimize the background using a Bayesian approach. | |
Protected Member Functions | |
virtual void | CalcPowderPattern () const |
Calc the powder pattern. | |
virtual void | CalcPowderPatternIntegrated () const |
Calc the integrated powder pattern. | |
virtual void | Prepare () |
virtual void | GetBraggLimits (CrystVector_long *&min, CrystVector_long *&max) const |
Get the integration limits (first and last pixels) around each reflection, if this component has Bragg reflections. | |
virtual void | SetMaxSinThetaOvLambda (const REAL max) |
exist but are ignored for all calculations. | |
void | InitRefParList () |
void | InitOptions () |
void | InitSpline () const |
Protected Attributes | |
int | mBackgroundNbPoint |
Number of fitting points for background. | |
CrystVector_REAL | mBackgroundInterpPointX |
Vector of 2theta values for the fitting points of the background. | |
CrystVector_REAL | mBackgroundInterpPointIntensity |
Values of background at interpolating points. | |
CrystVector_long | mPointOrder |
Subscript of the points, sorted the correct order, taking into account the type of radiation (monochromatic/TOF). | |
CrystVector_REAL | mvSplinePixel |
Vector of pixel values between each interval, for faster CubicSpline calculations. | |
CubicSpline | mvSpline |
Spline used for interpolation. | |
RefinableObjClock | mClockBackgroundPoint |
Modification of the interpolated points. | |
RefinableObjClock | mClockSpline |
Initialization of the spline. | |
REAL | mMaxSinThetaOvLambda |
Maximum sin(theta)/lambda for all calculations (10 by default). | |
REAL | mModelVariance |
Constant error (sigma) on the calculated pattern, due to an incomplete model. | |
RefObjOpt | mInterpolationModel |
Type of interpolation performed: linear or cubic spline. | |
Friends | |
class | PowderPattern |
|
|
|
|
|
|
|
Calc the powder pattern. As always, recomputation is only done if necessary (ie if a parameter has changed since the last computation) Implements ObjCryst::PowderPatternComponent. |
|
Calc the integrated powder pattern. This should be optimized so that the full powder pattern is not explicitely computed. Implements ObjCryst::PowderPatternComponent. |
|
Get the integration limits (first and last pixels) around each reflection, if this component has Bragg reflections. Used for integrated R(w) factors. The limits currently go from -2*FWHM to +2*FWHM. returns a pointer to the min and max pixels arrays (null pointers if no reflection for this phase). Implements ObjCryst::PowderPatternComponent. |
|
Name for this class ("RefinableObj", "Crystal",...). This is only useful to distinguish different classes when picking up objects from the RefinableObj Global Registry Reimplemented from ObjCryst::PowderPatternComponent. |
|
Get the gene group assigned to each parameter. Each parameter (a gene in terms of genetic algorithms) can be assigned to a gene group. Thus when mating two configurations, genes will be exchanged by groups. By default (in the base RefinabeObj class), each parameter is alone in its group. Derived classes can group genes for a better s** life. The number identifying a gene group only has a meaning in a given object. It can also change on subsequent calls, and thus is not unique.
Reimplemented from ObjCryst::RefinableObj. |
|
|
|
Get the calculated powder pattern for this component. Note that the pattern is not scaled. Implements ObjCryst::PowderPatternComponent. |
|
Get the variance associated to each point of the calculated powder pattern, for this component.
Implements ObjCryst::PowderPatternComponent. |
|
Get the integrated values of the powder pattern.
Implements ObjCryst::PowderPatternComponent. |
|
Get the variance associated to each point of the calculated powder pattern, for this component (integrated version).
Implements ObjCryst::PowderPatternComponent. |
|
Does this component have a variance associated with each calculated point ? i.e., do we use maximum likelihood to take into account incomplete models ?
Implements ObjCryst::PowderPatternComponent. |
|
Import background points from a file (with two columns 2theta (or tof), intensity).
|
|
|
|
|
|
|
|
Optimize the background using a Bayesian approach. The background parameters must be un-fixed before. The minimization will a maximum of 50 Simplex runs (see the SimplexObj documentation), each with 200 cycles. See the class documentation for PowderPatternBackgroundBayesianMinimiser. |
|
For internal use only. This will be called by the parent PowderPattern object, before calculating the first powder pattern. Or maybe it should be called automatically by the object itself... Implements ObjCryst::PowderPatternComponent. |
|
|
|
exist but are ignored for all calculations. All data above still Implements ObjCryst::PowderPatternComponent. |
|
Set the PowderPattern object which uses this component. This sets all necessary pattern parameters (2theta/tof range, wavelength, radiation type...) accordingly. Implements ObjCryst::PowderPatternComponent. |
|
During a global optimization, tells the object that the current config is the latest "best" config. This can be used by the object to make more intellingent random moves (use with caution: highly experimental !). Reimplemented from ObjCryst::RefinableObj. |
|
Input From stream.
Reimplemented from ObjCryst::RefinableObj. |
|
Output to stream in well-formed XML.
Reimplemented from ObjCryst::RefinableObj. |
|
Reimplemented from ObjCryst::PowderPatternComponent. |
|
Values of background at interpolating points.
|
|
Vector of 2theta values for the fitting points of the background.
|
|
Number of fitting points for background.
|
|
Modification of the interpolated points.
|
|
Initialization of the spline.
|
|
Type of interpolation performed: linear or cubic spline.
|
|
Maximum sin(theta)/lambda for all calculations (10 by default). This keeps all data in memory, but only the part which is below the max is calculated. |
|
Constant error (sigma) on the calculated pattern, due to an incomplete model.
|
|
Subscript of the points, sorted the correct order, taking into account the type of radiation (monochromatic/TOF).
|
|
Spline used for interpolation. Mutable since it copies information from mBackgroundInterpPointX and mBackgroundInterpPointIntensity. |
|
Vector of pixel values between each interval, for faster CubicSpline calculations. Mutable since it copies information from mBackgroundInterpPointX. |