Mantid
Loading...
Searching...
No Matches
Namespaces | Functions
PeakParameterHelper.cpp File Reference
#include "MantidAlgorithms/PeakParameterHelper.h"

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::Algorithms
 
namespace  Mantid::Algorithms::PeakParameterHelper
 

Functions

int Mantid::Algorithms::PeakParameterHelper::estimatePeakParameters (const Histogram &histogram, const std::pair< size_t, size_t > &peak_window, const API::IPeakFunction_sptr &peakfunction, const API::IBackgroundFunction_sptr &bkgdfunction, bool observe_peak_width, const EstimatePeakWidth peakWidthEstimateApproach, const double peakWidthPercentage, const double minPeakHeight)
 Estimate peak profile's parameters values via observation including (1) peak center (2) peak intensity (3) peak width depending on peak type In order to make the estimation better, a pre-defined background function is used to remove the background from the obervation data. More...
 
template MANTID_ALGORITHMS_DLL size_t Mantid::Algorithms::PeakParameterHelper::findXIndex (const HistogramData::HistogramX &, const double, const size_t)
 
template MANTID_ALGORITHMS_DLL size_t Mantid::Algorithms::PeakParameterHelper::findXIndex (const HistogramData::Points &, const double, const size_t)
 
template MANTID_ALGORITHMS_DLL size_t Mantid::Algorithms::PeakParameterHelper::findXIndex (const std::vector< double > &, const double, const size_t)
 
template<typename vector_like >
size_t Mantid::Algorithms::PeakParameterHelper::findXIndex (const vector_like &vecx, const double x, const size_t startindex)
 Get an index of a value in a sorted vector. More...
 
int Mantid::Algorithms::PeakParameterHelper::observePeakCenter (const Histogram &histogram, const FunctionValues &bkgd_values, size_t start_index, size_t stop_index, double &peak_center, size_t &peak_center_index, double &peak_height)
 Guess/estimate peak center and thus height by observation. More...
 
double Mantid::Algorithms::PeakParameterHelper::observePeakFwhm (const Histogram &histogram, const FunctionValues &bkgd_values, size_t ipeak, size_t istart, size_t istop, const EstimatePeakWidth peakWidthEstimateApproach, const double peakWidthPercentage)
 estimate peak width from 'observation' More...