17#include <OpenMS/config.h>
70 static double bwNrd0(
const std::vector<double>& x);
97 static std::vector<double>
linBin(
const std::vector<double>& x,
101 const std::vector<double>* weights);
104 static std::vector<double>
linBin(
const std::vector<double>& x,
133 static std::vector<double>
forRt(
const std::vector<double>& X, std::size_t M = 0);
157 static std::vector<double>
revRt(
const std::vector<double>& Xp, std::size_t M = 0);
226 static std::pair<std::vector<double>, std::vector<double>>
gridKdeFFT(
const std::vector<double>& x,
228 std::size_t gridsize = 512,
252 static std::vector<double>
kdeFFTEval(
const std::vector<double>& x,
254 std::size_t gridsize = 512,
static double bwNrd0(const std::vector< double > &x)
Bandwidth selector using the "nrd0" rule-of-thumb for kernel density estimation.
static std::vector< double > kdeFFTEval(const std::vector< double > &x, double bw, std::size_t gridsize=512, double cut=3.0)
Evaluate kernel density estimates at the data points themselves.
static std::vector< double > linBin(const std::vector< double > &x, double xmin, double xmax, std::size_t nbins, const std::vector< double > *weights)
Linear binning of data onto an equally-spaced grid.
static std::vector< double > forRt(const std::vector< double > &X, std::size_t M=0)
Forward FFT of real-valued data using Munro-packed format.
static std::vector< double > silvermanKernelFFT(double bw, std::size_t M, double RANGE)
Compute the FFT of a Gaussian kernel in Munro-packed format.
static std::vector< double > revRt(const std::vector< double > &Xp, std::size_t M=0)
Inverse FFT of Munro-packed data to real-valued output.
static std::pair< std::vector< double >, std::vector< double > > gridKdeFFT(const std::vector< double > &x, double bw, std::size_t gridsize=512, double cut=3.0)
Fast kernel density estimation on a regular grid using FFT convolution.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Kernel Density Estimation utilities using FFT-based methods.
Definition KernelDensityEstimation.h:46
static std::vector< double > linBin(const std::vector< double > &x, double xmin, double xmax, std::size_t nbins)
Convenience overload that uses uniform weights.