Changeset 8933 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/CovarianceFunctions/CovarianceRationalQuadraticArd.cs
- Timestamp:
- 11/20/12 14:04:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/CovarianceFunctions/CovarianceRationalQuadraticArd.cs
r8932 r8933 148 148 : Util.SqrDist(x, i, j, inverseLength, columnIndices); 149 149 double b = 1 + 0.5 * d / shape; 150 int k = 0; 150 151 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++; 152 154 } 153 155 yield return 2 * sf2 * Math.Pow(b, -shape);
Note: See TracChangeset
for help on using the changeset viewer.