Mantid
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
PeakParameterHelper.h File Reference
#include "MantidAPI/FunctionValues.h"
#include "MantidAPI/IBackgroundFunction.h"
#include "MantidAPI/IPeakFunction.h"
#include "MantidAlgorithms/DllConfig.h"
#include "MantidHistogramData/Histogram.h"
#include <algorithm>
#include <utility>

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
 

Enumerations

enum  Mantid::Algorithms::PeakParameterHelper::EstimatePeakWidth { Mantid::Algorithms::PeakParameterHelper::NoEstimation , Mantid::Algorithms::PeakParameterHelper::Observation , Mantid::Algorithms::PeakParameterHelper::InstrumentResolution }
 
enum  Mantid::Algorithms::PeakParameterHelper::PeakFitResult { Mantid::Algorithms::PeakParameterHelper::NOSIGNAL , Mantid::Algorithms::PeakParameterHelper::LOWPEAK , Mantid::Algorithms::PeakParameterHelper::OUTOFBOUND , Mantid::Algorithms::PeakParameterHelper::GOOD }
 

Functions

MANTID_ALGORITHMS_DLL int Mantid::Algorithms::PeakParameterHelper::estimatePeakParameters (const HistogramData::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 parameters by 'observation'. More...
 
template<typename vector_like >
MANTID_ALGORITHMS_DLL size_t Mantid::Algorithms::PeakParameterHelper::findXIndex (const vector_like &vecx, const double x, const size_t startindex=0)
 Get an index of a value in a sorted vector. More...
 
MANTID_ALGORITHMS_DLL int Mantid::Algorithms::PeakParameterHelper::observePeakCenter (const HistogramData::Histogram &histogram, const API::FunctionValues &bkgd_values, size_t start_index, size_t stop_index, double &peak_center, size_t &peak_center_index, double &peak_height)
 observe peak center More...
 
MANTID_ALGORITHMS_DLL double Mantid::Algorithms::PeakParameterHelper::observePeakFwhm (const HistogramData::Histogram &histogram, const API::FunctionValues &bkgd_values, size_t ipeak, size_t istart, size_t istop, const EstimatePeakWidth peakWidthEstimateApproach, const double peakWidthPercentage)
 Observe peak width. More...