Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9104 for trunk


Ignore:
Timestamp:
01/03/13 18:28:12 (12 years ago)
Author:
gkronber
Message:

#1902 fixed a bug occurring when the masking covariance function is used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessModel.cs

    r8982 r9104  
    155155        .ToArray();
    156156
    157       var cov = covarianceFunction.GetParameterizedCovarianceFunction(covarianceParameter, Enumerable.Range(0, x.GetLength(1)));
     157      var cov = covarianceFunction.GetParameterizedCovarianceFunction(covarianceParameter, null);
    158158      for (int i = 0; i < n; i++) {
    159159        for (int j = i; j < n; j++) {
     
    266266      .Select(r => mean.Mean(newX, r))
    267267      .ToArray();
    268       var cov = covarianceFunction.GetParameterizedCovarianceFunction(covarianceParameter, Enumerable.Range(0, newX.GetLength(1)));
     268      var cov = covarianceFunction.GetParameterizedCovarianceFunction(covarianceParameter, null);
    269269      for (int i = 0; i < newN; i++) {
    270270        for (int j = 0; j < n; j++) {
     
    284284      var kss = new double[newN];
    285285      double[,] sWKs = new double[n, newN];
    286       var cov = covarianceFunction.GetParameterizedCovarianceFunction(covarianceParameter, Enumerable.Range(0, newX.GetLength(1)));
     286      var cov = covarianceFunction.GetParameterizedCovarianceFunction(covarianceParameter, null);
    287287
    288288      // for stddev
Note: See TracChangeset for help on using the changeset viewer.