Mantid
|
This class is a small helper for SortHKL to hold Peak-objects that belong to the same family of reflections. More...
#include <PeakStatisticsTools.h>
Public Member Functions | |
void | addPeak (const DataObjects::Peak &peak) |
size_t | count () const |
const Kernel::V3D & | getHKL () const |
std::vector< double > | getIntensities () const |
Returns a vector with the intensities of the Peaks stored in this reflection. More... | |
const std::vector< DataObjects::Peak > & | getPeaks () const |
std::vector< double > | getSigmas () const |
Returns a vector with the intensity sigmas of the Peaks stored in this reflection. More... | |
std::vector< double > | getWavelengths () const |
Returns a vector with the wavelengths of the Peaks stored in this reflection. More... | |
UniqueReflection | removeOutliers (double sigmaCritical=3.0, bool weightedZ=false) const |
Removes peaks whose intensity deviates more than sigmaCritical from the intensities' mean. More... | |
void | setPeaksIntensityAndSigma (double intensity, double sigma) |
Sets the intensities and sigmas of all stored peaks to the supplied values. More... | |
UniqueReflection (const Kernel::V3D &hkl) | |
Private Attributes | |
Kernel::V3D | m_hkl |
std::vector< DataObjects::Peak > | m_peaks |
This class is a small helper for SortHKL to hold Peak-objects that belong to the same family of reflections.
It has methods to return the intensities and sigmas of the contained Peak-objects as vectors. Furthermore there is a function that removes outliers based on the intensities/sigmas.
Definition at line 33 of file PeakStatisticsTools.h.
|
inline |
Definition at line 35 of file PeakStatisticsTools.h.
|
inline |
Definition at line 39 of file PeakStatisticsTools.h.
Referenced by removeOutliers().
|
inline |
Definition at line 41 of file PeakStatisticsTools.h.
|
inline |
Definition at line 37 of file PeakStatisticsTools.h.
std::vector< double > Mantid::Crystal::PeakStatisticsTools::UniqueReflection::getIntensities | ( | ) | const |
Returns a vector with the intensities of the Peaks stored in this reflection.
Definition at line 38 of file PeakStatisticsTools.cpp.
References m_peaks.
Referenced by removeOutliers().
|
inline |
Definition at line 40 of file PeakStatisticsTools.h.
std::vector< double > Mantid::Crystal::PeakStatisticsTools::UniqueReflection::getSigmas | ( | ) | const |
Returns a vector with the intensity sigmas of the Peaks stored in this reflection.
Definition at line 50 of file PeakStatisticsTools.cpp.
References m_peaks.
Referenced by removeOutliers().
std::vector< double > Mantid::Crystal::PeakStatisticsTools::UniqueReflection::getWavelengths | ( | ) | const |
Returns a vector with the wavelengths of the Peaks stored in this reflection.
Definition at line 26 of file PeakStatisticsTools.cpp.
References m_peaks.
UniqueReflection Mantid::Crystal::PeakStatisticsTools::UniqueReflection::removeOutliers | ( | double | sigmaCritical = 3.0 , |
bool | weightedZ = false |
||
) | const |
Removes peaks whose intensity deviates more than sigmaCritical from the intensities' mean.
Definition at line 62 of file PeakStatisticsTools.cpp.
References addPeak(), getIntensities(), getSigmas(), Mantid::Kernel::getWeightedZscore(), Mantid::Kernel::getZscore(), m_hkl, and m_peaks.
void Mantid::Crystal::PeakStatisticsTools::UniqueReflection::setPeaksIntensityAndSigma | ( | double | intensity, |
double | sigma | ||
) |
Sets the intensities and sigmas of all stored peaks to the supplied values.
Definition at line 94 of file PeakStatisticsTools.cpp.
|
private |
Definition at line 51 of file PeakStatisticsTools.h.
Referenced by removeOutliers().
|
private |
Definition at line 52 of file PeakStatisticsTools.h.
Referenced by getIntensities(), getSigmas(), getWavelengths(), removeOutliers(), and setPeaksIntensityAndSigma().