Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
Smoothing.cpp File Reference
#include "MantidKernel/Smoothing.h"
#include "MantidKernel/DllConfig.h"
#include "MantidKernel/GSL_Helpers.h"
#include <algorithm>
#include <cmath>
#include <stdexcept>
#include <vector>

Go to the source code of this file.

Classes

struct  Mantid::Kernel::Smoothing::detail::ArithmeticAverager< T >
 Represents taking the arithmetic mean. More...
 
struct  Mantid::Kernel::Smoothing::detail::Averager< T >
 
struct  Mantid::Kernel::Smoothing::detail::ErrorPropagationAverager< T >
 Represents propagating errors for values which had been arithmetically averaged. More...
 
struct  Mantid::Kernel::Smoothing::detail::GeometricAverager< T >
 Represents taking the geometric mean. More...
 
struct  Mantid::Kernel::Smoothing::detail::SumSquareAverager< T >
 Represents taking the root-mean-square averaege. More...
 
struct  Mantid::Kernel::Smoothing::fft::ButterworthFilter< Y >
 
struct  Mantid::Kernel::Smoothing::fft::FFTFilter< Y >
 
struct  Mantid::Kernel::Smoothing::fft::ZeroFilter< Y >
 

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::Kernel
 
namespace  Mantid::Kernel::Smoothing
 
namespace  Mantid::Kernel::Smoothing::detail
 
namespace  Mantid::Kernel::Smoothing::fft
 

Functions

template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::Smoothing::boxcarErrorSmooth (std::vector< double > const &, unsigned int const)
 
template<typename T >
std::vector< T > Mantid::Kernel::Smoothing::boxcarErrorSmooth (std::vector< T > const &input, unsigned int const numPoints)
 Performs boxcar (moving average) smoothing on the input data, using error propagation formula.
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::Smoothing::boxcarRMSESmooth (std::vector< double > const &, unsigned int const)
 
template<typename T >
std::vector< T > Mantid::Kernel::Smoothing::boxcarRMSESmooth (std::vector< T > const &input, unsigned int const numPoints)
 Performs boxcar (moving average) smoothing on the input data, using a RMSE average, as is appropriate for error averaging.
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::Smoothing::boxcarSmooth (std::vector< double > const &, unsigned int const)
 
template<typename T >
std::vector< T > Mantid::Kernel::Smoothing::boxcarSmooth (std::vector< T > const &input, unsigned int const numPoints)
 Performs boxcar (moving average) smoothing on the input data.
 
template<typename T >
std::vector< T > Mantid::Kernel::Smoothing::detail::boxcarSmoothWithFunction (std::vector< T > const &input, unsigned int const numPoints, Averager< T > &averager)
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::Smoothing::fftButterworthSmooth (std::vector< double > const &, unsigned const, unsigned const)
 
template<typename Y >
std::vector< YMantid::Kernel::Smoothing::fftButterworthSmooth (std::vector< Y > const &input, unsigned const cutoff, unsigned const order)
 Performs FFT smoothing on the input data, using a Butterworth filter NOTE: the input data MUST be defined on a uniform grid.
 
template MANTID_KERNEL_DLL std::vector< double > Mantid::Kernel::Smoothing::fftSmooth (std::vector< double > const &, unsigned const)
 
template<typename Y >
std::vector< YMantid::Kernel::Smoothing::fftSmooth (std::vector< Y > const &input, unsigned const cutoff)
 Performs FFT smoothing on the input data, with high frequencies set to zero NOTE: the input data MUST be defined on a uniform grid.
 
template<typename Y >
std::vector< YMantid::Kernel::Smoothing::fft::fftSmoothWithFilter (std::vector< Y > const &input, FFTFilter< Y > const &filter)