Package jgpml.covariancefunctions
Class CovSum
java.lang.Object
jgpml.covariancefunctions.CovSum
- All Implemented Interfaces:
- CovarianceFunction
Composes a covariance function as the sum of other covariance
 functions. This function doesn't actually compute very much on its own, it
 merely calls other covariance functions with the right parameters.
- 
Constructor SummaryConstructorsConstructorDescriptionCovSum(int inputDimensions, CovarianceFunction... f) Create a newCovarianceFunctionas sum of theCovarianceFunctions passed as input.
- 
Method SummaryModifier and TypeMethodDescriptionJama.Matrixcompute(Jama.Matrix loghyper, Jama.Matrix X) Compute covariance matrix of a dataset XJama.Matrix[]compute(Jama.Matrix loghyper, Jama.Matrix X, Jama.Matrix Xstar) Compute compute test set covariancesJama.MatrixcomputeDerivatives(Jama.Matrix loghyper, Jama.Matrix X, int index) Coompute the derivatives of thisCovarianceFunctionwith respect to the hyperparameter with indexidxintReturns the number of hyperparameters of thisCovarianceFunction
- 
Constructor Details- 
CovSumCreate a newCovarianceFunctionas sum of theCovarianceFunctions passed as input.- Parameters:
- inputDimensions- input dimension of the dataset
- f- array of- CovarianceFunction
- See Also:
 
 
- 
- 
Method Details- 
numParameterspublic int numParameters()Returns the number of hyperparameters of thisCovarianceFunction- Specified by:
- numParametersin interface- CovarianceFunction
- Returns:
- number of hyperparameters
 
- 
computepublic Jama.Matrix compute(Jama.Matrix loghyper, Jama.Matrix X) Compute covariance matrix of a dataset X- Specified by:
- computein interface- CovarianceFunction
- Parameters:
- loghyper- column- Matrixof hyperparameters
- X- input dataset
- Returns:
- K covariance Matrix
 
- 
computepublic Jama.Matrix[] compute(Jama.Matrix loghyper, Jama.Matrix X, Jama.Matrix Xstar) Compute compute test set covariances- Specified by:
- computein interface- CovarianceFunction
- Parameters:
- loghyper- column- Matrixof hyperparameters
- X- input dataset
- Xstar- test set
- Returns:
- [K(Xstar, Xstar) K(X,Xstar)]
 
- 
computeDerivativespublic Jama.Matrix computeDerivatives(Jama.Matrix loghyper, Jama.Matrix X, int index) Coompute the derivatives of thisCovarianceFunctionwith respect to the hyperparameter with indexidx- Specified by:
- computeDerivativesin interface- CovarianceFunction
- Parameters:
- loghyper- hyperparameters
- X- input dataset
- index- hyperparameter index
- Returns:
- Matrixof derivatives
 
 
-