Loading...
Searching...
No Matches
gpr::bo::ScaledRadial< Radial > Class Template Reference

c * f. The scale is finite and may be negative. The leaf keeps its variance. More...

#include <gpr/bo/StationaryKernel.h>

Public Member Functions

 ScaledRadial (double scale, Radial radial)
double operator() (double squared_distance) const
double derivative (double squared_distance) const
double secondDerivative (double squared_distance) const

Detailed Description

template<typename Radial>
class gpr::bo::ScaledRadial< Radial >

c * f. The scale is finite and may be negative. The leaf keeps its variance.

Definition at line 591 of file StationaryKernel.h.

Constructor & Destructor Documentation

◆ ScaledRadial()

template<typename Radial>
gpr::bo::ScaledRadial< Radial >::ScaledRadial ( double scale,
Radial radial )
inline

Definition at line 593 of file StationaryKernel.h.

594 : scale_(scale), radial_(std::move(radial))
595 {
596 if (!std::isfinite(scale_)) {
597 throw std::invalid_argument("radial scale must be finite");
598 }
599 }
c * f. The scale is finite and may be negative. The leaf keeps its variance.

Member Function Documentation

◆ derivative()

template<typename Radial>
double gpr::bo::ScaledRadial< Radial >::derivative ( double squared_distance) const
inlinenodiscard

Definition at line 606 of file StationaryKernel.h.

607 {
608 return scale_ * radial_.derivative(squared_distance);
609 }

◆ operator()()

template<typename Radial>
double gpr::bo::ScaledRadial< Radial >::operator() ( double squared_distance) const
inline

Definition at line 601 of file StationaryKernel.h.

602 {
603 return scale_ * radial_(squared_distance);
604 }

◆ secondDerivative()

template<typename Radial>
double gpr::bo::ScaledRadial< Radial >::secondDerivative ( double squared_distance) const
inlinenodiscard

Definition at line 611 of file StationaryKernel.h.

612 {
613 return scale_ * radial_.secondDerivative(squared_distance);
614 }

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