Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
Smoothing.hpp File Reference

Kernel-based smoothing algorithms for analysis data. More...

#include "math/Constants.hpp"
#include "math/Precision.hpp"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <numeric>
#include <stdexcept>
#include <vector>
Include dependency graph for Smoothing.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  correlation::math::KernelGenerationParams
 Parameters for kernel generation. More...
struct  correlation::math::KernelSmoothingParams
 Options bundling for data series kernel smoothing. More...

Namespaces

namespace  correlation
namespace  correlation::math
 Defines universal mathematical and physical constants.
namespace  correlation::math::detail

Enumerations

enum class  correlation::math::KernelType : std::uint8_t {
  correlation::math::Gaussian , correlation::math::Bump , correlation::math::Triweight , correlation::math::Epanechnikov ,
  correlation::math::Cosine , correlation::math::Biweight
}
 Selection of kernel types for smoothing. More...

Functions

void correlation::math::detail::fillGaussian (std::vector< real_t > &kernel, const KernelGenerationParams &params, real_t center)
void correlation::math::detail::fillTriweight (std::vector< real_t > &kernel, const KernelGenerationParams &params, real_t center)
void correlation::math::detail::fillBump (std::vector< real_t > &kernel, const KernelGenerationParams &params, real_t center)
void correlation::math::detail::fillEpanechnikov (std::vector< real_t > &kernel, const KernelGenerationParams &params, real_t center)
void correlation::math::detail::fillCosine (std::vector< real_t > &kernel, const KernelGenerationParams &params, real_t center)
void correlation::math::detail::fillBiweight (std::vector< real_t > &kernel, const KernelGenerationParams &params, real_t center)
std::vector< real_t > correlation::math::generateKernel (const KernelGenerationParams &params)
 Generates a smoothing kernel.
std::vector< real_t > correlation::math::kernelSmoothing (const std::vector< real_t > &y_values, KernelSmoothingParams params)
 Applies kernel smoothing to a data series.
std::vector< real_t > correlation::math::kernelSmoothing (const std::vector< real_t > &r_values, const std::vector< real_t > &y_values, KernelSmoothingParams params)
 Grid overload: derives bin_width from the independent variable grid.

Detailed Description

Kernel-based smoothing algorithms for analysis data.

License
SPDX-License-Identifier: AGPL-3.0-only