source: src/main/java/agents/anac/y2015/Phoenix/GP/CovarianceFunction.java@ 346

Last change on this file since 346 was 1, checked in by Wouter Pasman, 6 years ago

Initial import : Genius 9.0.0

File size: 2.5 KB
Line 
1package agents.anac.y2015.Phoenix.GP;/* This file is part of the jgpml Project.
2 * http://github.com/renzodenardi/jgpml
3 *
4 * Copyright (c) 2011 Renzo De Nardi and Hugo Gravato-Marques
5 *
6 * Permission is hereby granted, free of charge, to any person
7 * obtaining a copy of this software and associated documentation
8 * files (the "Software"), to deal in the Software without
9 * restriction, including without limitation the rights to use,
10 * copy, modify, merge, publish, distribute, sublicense, and/or sell
11 * copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following
13 * conditions:
14 *
15 * The above copyright notice and this permission notice shall be
16 * included in all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25 * OTHER DEALINGS IN THE SOFTWARE.
26 */
27
28import agents.Jama.Matrix;
29
30
31public interface CovarianceFunction {
32
33 /**
34 * Returns the number of hyperparameters of this<code>PhoenixAlpha.CovarianceFunction</code>
35 * @return number of hyperparameters
36 */
37 public int numParameters();
38
39 /**
40 * Compute covariance matrix of a dataset X
41 * @param loghyper column <code>Matrix</code> of hyperparameters
42 * @param X input dataset
43 * @return K covariance <code>Matrix</code>
44 */
45 public Matrix compute(Matrix loghyper, Matrix X);
46
47 /**
48 * Compute compute test set covariances
49 * @param loghyper column <code>Matrix</code> of hyperparameters
50 * @param X input dataset
51 * @param Xstar test set
52 * @return [K(Xstar,Xstar) K(X,Xstar)]
53 */
54 public Matrix[] compute(Matrix loghyper, Matrix X, Matrix Xstar);
55
56 /**
57 * Coompute the derivatives of this <code>PhoenixAlpha.CovarianceFunction</code> with respect
58 * to the hyperparameter with index <code>idx</code>
59 *
60 * @param loghyper hyperparameters
61 * @param X input dataset
62 * @param index hyperparameter index
63 * @return <code>Matrix</code> of derivatives
64 */
65 public Matrix computeDerivatives(Matrix loghyper, Matrix X, int index);
66
67}
Note: See TracBrowser for help on using the repository browser.