Mantid
Loading...
Searching...
No Matches
ApodizationFunctions.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7//----------------------------------------------------------------------
8// Includes
9//----------------------------------------------------------------------
11#include <cmath>
12
14
25double lorentz(const double time, const double decayConstant) { return exp(-time / decayConstant); }
35double gaussian(const double time, const double decayConstant) {
36 return exp(-(time * time) / (2. * decayConstant * decayConstant));
37}
38
46double none(const double /*unused*/, const double /*unused*/) { return 1.; }
47} // namespace Mantid::Algorithms::ApodizationFunctions
double none(const double, const double)
Returns no apodization function.
double lorentz(double time, double decayConstant)
Returns the evaluation of the Lorentz (an exponential decay) apodization function at a time (t) and d...
double gaussian(const double time, const double decayConstant)
Returns the evaluation of the Gaussian apodization function at a time (t) and decay constant tau: f =...