Loading...
Searching...
No Matches
gpr::bo::ProductRadial< Left, Right > Class Template Reference

f * g on one squared distance. More...

#include <gpr/bo/StationaryKernel.h>

Public Member Functions

 ProductRadial (Left left, Right right)
double operator() (double squared_distance) const
double derivative (double squared_distance) const
double secondDerivative (double squared_distance) const

Detailed Description

template<typename Left, typename Right>
class gpr::bo::ProductRadial< Left, Right >

f * g on one squared distance.

Definition at line 654 of file StationaryKernel.h.

Constructor & Destructor Documentation

◆ ProductRadial()

template<typename Left, typename Right>
gpr::bo::ProductRadial< Left, Right >::ProductRadial ( Left left,
Right right )
inline

Definition at line 656 of file StationaryKernel.h.

657 : left_(std::move(left)), right_(std::move(right))
658 {
659 }
f * g on one squared distance.

Member Function Documentation

◆ derivative()

template<typename Left, typename Right>
double gpr::bo::ProductRadial< Left, Right >::derivative ( double squared_distance) const
inlinenodiscard

Definition at line 666 of file StationaryKernel.h.

667 {
668 return left_.derivative(squared_distance) * right_(squared_distance) +
669 left_(squared_distance) * right_.derivative(squared_distance);
670 }

◆ operator()()

template<typename Left, typename Right>
double gpr::bo::ProductRadial< Left, Right >::operator() ( double squared_distance) const
inline

Definition at line 661 of file StationaryKernel.h.

662 {
663 return left_(squared_distance) * right_(squared_distance);
664 }

◆ secondDerivative()

template<typename Left, typename Right>
double gpr::bo::ProductRadial< Left, Right >::secondDerivative ( double squared_distance) const
inlinenodiscard

Definition at line 672 of file StationaryKernel.h.

673 {
674 const double left = left_(squared_distance);
675 const double right = right_(squared_distance);
676 return left_.secondDerivative(squared_distance) * right +
677 2.0 * left_.derivative(squared_distance) *
678 right_.derivative(squared_distance) +
680 }
double secondDerivative(double squared_distance) const
double derivative(double squared_distance) const

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