Loading...
Searching...
No Matches
StationaryKernel.h File Reference

Stationary scalar covariance: a radial function of a squared distance. More...

#include <Eigen/Dense>
#include <algorithm>
#include <cmath>
#include <concepts>
#include <limits>
#include <stdexcept>
#include <utility>
#include <vector>
#include "gpr/numerics/PortableMath.h"

Go to the source code of this file.

Classes

class  gpr::bo::ScaledEuclideanDistance
 Squared Euclidean distance with one length scale, or one per coordinate. More...
class  gpr::bo::SquaredExponential
 k(r^2) = variance * exp(-r^2 / 2). The value at zero is the variance. More...
class  gpr::bo::Matern32
 Matern 3/2 of the Euclidean radius, k(0) = variance. More...
class  gpr::bo::Matern52
 Matern 5/2 of the Euclidean radius, k(0) = variance. More...
class  gpr::bo::RadialShape
 One of SquaredExponential, Matern32 and Matern52 behind a tag. More...
class  gpr::bo::ScaledRadial< Radial >
 c * f. The scale is finite and may be negative. The leaf keeps its variance. More...
class  gpr::bo::SumRadial< Left, Right >
 f + g on one squared distance. More...
class  gpr::bo::ProductRadial< Left, Right >
 f * g on one squared distance. More...
class  gpr::bo::StationaryKernel< Distance, Radial >
 Covariance k(d(x, x')). Distance::squared and Radial::operator()(double). More...

Namespaces

namespace  gpr
 Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
namespace  gpr::bo

Concepts

concept  gpr::bo::SquaredDistance
 squared(left, right) is the squared separation of two parameter rows.
concept  gpr::bo::RadialFunction
 operator()(double) is the covariance of one squared distance.

Enumerations

enum class  gpr::bo::RadialKind { gpr::bo::SquaredExponential , gpr::bo::Matern32 , gpr::bo::Matern52 }
 Radial shape of a stationary kernel, selected at run time. More...

Functions

double gpr::bo::kernelMean1D (const SquaredExponential &radial, double point, double lower, double upper, double lengthscale)
double gpr::bo::kernelMean1D (const Matern32 &radial, double point, double lower, double upper, double lengthscale)
double gpr::bo::kernelMean1D (const Matern52 &radial, double point, double lower, double upper, double lengthscale)
double gpr::bo::kernelDoubleIntegral1D (const SquaredExponential &radial, double lower, double upper, double lengthscale)
double gpr::bo::kernelDoubleIntegral1D (const Matern32 &radial, double lower, double upper, double lengthscale)
double gpr::bo::kernelDoubleIntegral1D (const Matern52 &radial, double lower, double upper, double lengthscale)
template<class Radial>
double gpr::bo::kernelMean1DLogLengthDerivative (const Radial &radial, double point, double lower, double upper, double lengthscale)
template<class Radial>
double gpr::bo::kernelDoubleIntegral1DLogLengthDerivative (const Radial &radial, double lower, double upper, double lengthscale)
template<typename Radial>
ScaledRadial< Radial > gpr::bo::scaledRadial (double scale, Radial radial)
template<typename Left, typename Right>
SumRadial< Left, Right > gpr::bo::sumRadial (Left left, Right right)
template<typename Left, typename Right>
ProductRadial< Left, Right > gpr::bo::productRadial (Left left, Right right)
template<typename Distance, typename Radial>
requires SquaredDistance<Distance> && RadialFunction<Radial>
StationaryKernel< Distance, Radial > gpr::bo::stationaryKernel (Distance distance, Radial radial)

Detailed Description

Stationary scalar covariance: a radial function of a squared distance.

The distance chooses how two parameter vectors are compared. The radial function chooses the shape along that distance. A squared exponential on one Euclidean metric is one pair, not the kernel type.

Definition in file StationaryKernel.h.