Loading...
Searching...
No Matches
ConstantCF.inl
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
5//
6// ConstantCF.inl
7// gpr_dimer
8//
9// Created by Maxim Masterov on 21/01/2021.
10//
11
12#ifndef ConstantCF_inl
13#define ConstantCF_inl
14
15namespace gpr {
16
17inline void ConstantCF::setConstSigma2(const double _constSigma2)
18{
19 constSigma2 = _constSigma2;
20}
21
22inline void ConstantCF::setParameters(const Eigen::VectorXd& /*w*/)
23{
24 // No-op: constSigma2 is not optimized by SCG (combineParameters returns
25 // empty), so it must not be unpacked from the shared parameter vector w.
26 // The MATLAB gpcf_constant_unpak only unpacks when the parameter is in the
27 // optimization set; since combineParameters() is empty, it never is.
28}
29
31{
32 return constSigma2;
33}
34
35inline Eigen::VectorXd ConstantCF::combineParameters()
36{
37 Eigen::VectorXd res;
38 return res;
39}
40
41} /* namespace gpr */
42
43#endif /* ConstantCF_inl */
double getConstSigma2()
void setParameters(const Eigen::VectorXd &w)
Set parameters of this covariance function using the provided vector.
Eigen::VectorXd combineParameters()
Combine parameters of the covariance function into one Eigen vector.
void setConstSigma2(const double _constSigma2)
Set the constSigma2 value.
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition Macros.h:16