13#include "MantidAlgorithms/DllConfig.h"
14#include "MantidHistogramData/Histogram.h"
40 const std::string
name()
const override {
return "PaddingAndApodization"; }
42 const std::string
summary()
const override {
43 return "This algorithm applies apodization and/or padding to input data.";
47 int version()
const override {
return 1; }
49 const std::string
category()
const override {
return "Arithmetic\\FFT"; }
55 using fptr = double (*)(
const double,
const double);
56 fptr getApodizationFunction(
const std::string &method);
57 HistogramData::Histogram applyApodizationFunction(
const HistogramData::Histogram &histogram,
58 const double decayConstant,
fptr function);
59 HistogramData::Histogram addPadding(
const HistogramData::Histogram &histogram,
const int padding);
Base class from which all concrete algorithm classes should be derived.
Takes a workspace as input and applies a apodization function and/or padding.
int version() const override
Algorithm's version for identification overriding a virtual method.
double(*)(const double, const double) fptr
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Helper class which provides the Collimation Length for SANS instruments.