Loading...
Searching...
No Matches
gpr::bo::StationaryKernel< Distance, Radial > Class Template Reference

Covariance k(d(x, x')). Distance::squared and Radial::operator()(double). More...

#include <gpr/bo/StationaryKernel.h>

Public Member Functions

 StationaryKernel (Distance distance, Radial radial)
template<typename Left, typename Right>
double covariance (const Left &left, const Right &right) const

Detailed Description

template<typename Distance, typename Radial>
requires SquaredDistance<Distance> && RadialFunction<Radial>
class gpr::bo::StationaryKernel< Distance, Radial >

Covariance k(d(x, x')). Distance::squared and Radial::operator()(double).

Definition at line 726 of file StationaryKernel.h.

Constructor & Destructor Documentation

◆ StationaryKernel()

template<typename Distance, typename Radial>
gpr::bo::StationaryKernel< Distance, Radial >::StationaryKernel ( Distance distance,
Radial radial )
inline

Definition at line 728 of file StationaryKernel.h.

729 : distance_(std::move(distance)), radial_(std::move(radial))
730 {
731 }
Covariance k(d(x, x')). Distance::squared and Radial::operator()(double).

Member Function Documentation

◆ covariance()

template<typename Distance, typename Radial>
template<typename Left, typename Right>
double gpr::bo::StationaryKernel< Distance, Radial >::covariance ( const Left & left,
const Right & right ) const
inline

Definition at line 734 of file StationaryKernel.h.

735 {
736 return radial_(distance_.squared(left, right));
737 }

The documentation for this class was generated from the following file: