Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/03/13 15:30:41 (11 years ago)
Author:
gkronber
Message:

#1967: adapted GP tuning branch to work with most recent trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.Instances.DataAnalysis.GaussianProcessRegression/Util.cs

    r8873 r9099  
    3232
    3333
    34     public static List<double> SampleGaussianProcess(IRandom random, ICovarianceFunction covFunction, List<List<double>> data) {
     34    public static List<double> SampleGaussianProcess(IRandom random, ParameterizedCovarianceFunction covFunction, List<List<double>> data) {
    3535
    3636      double[,] x = new double[data[0].Count, data.Count];
     
    4141      for (int i = 0; i < K.GetLength(0); i++)
    4242        for (int j = i; j < K.GetLength(1); j++)
    43           K[i, j] = covFunction.GetCovariance(x, i, j, null);
     43          K[i, j] = covFunction.Covariance(x, i, j);
    4444
    4545      var normalRand = new NormalDistributedRandom(random, 0, 1);
Note: See TracChangeset for help on using the changeset viewer.