Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/20/12 14:04:29 (12 years ago)
Author:
gkronber
Message:

#1902 corrected handling of length-parameter arrays in ARD functions and prevented stacking of mask covariance functions to make sure that the length-parameter and the enumerable of selected column indexes are equally long.

File:
1 edited

Legend:

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

    r8932 r8933  
    148148                   : Util.SqrDist(x, i, j, inverseLength, columnIndices);
    149149      double b = 1 + 0.5 * d / shape;
     150      int k = 0;
    150151      foreach (var columnIndex in columnIndices) {
    151         yield return sf2 * Math.Pow(b, -shape - 1) * Util.SqrDist(x[i, columnIndex] * inverseLength[columnIndex], x[j, columnIndex] * inverseLength[columnIndex]);
     152        yield return sf2 * Math.Pow(b, -shape - 1) * Util.SqrDist(x[i, columnIndex] * inverseLength[k], x[j, columnIndex] * inverseLength[k]);
     153        k++;
    152154      }
    153155      yield return 2 * sf2 * Math.Pow(b, -shape);
Note: See TracChangeset for help on using the changeset viewer.