Changeset 10473
- Timestamp:
- 02/20/14 13:06:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SpectralKernelForGaussianProcesses/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/CovarianceFunctions/CovarianceSpectralMixture.cs
r10205 r10473 175 175 // for each component 176 176 for (int q = 0; q < maxQ; q++) { 177 double k = weight[q]; 177 double k = weight[q]; 178 178 int idx = 0; // helper index for tau 179 179 // for each selected variable … … 204 204 // for each selected variable 205 205 foreach (var c in columnIndices) { 206 double k = -2 * Math.PI * Math.PI * tau[idx] * tau[idx] * 207 Math.Exp(-2 * Math.PI * Math.PI * tau[idx] * tau[idx] * lengthScale[q * numberOfVariables + c] + Math.Log(lengthScale[q * numberOfVariables + c])) * 208 f2(tau[idx], frequency[q * numberOfVariables + c]); 206 double k = -2 * Math.PI * Math.PI * tau[idx] * tau[idx] * lengthScale[q * numberOfVariables + c] * 207 f1(tau[idx], lengthScale[q * numberOfVariables + c]) * f2(tau[idx], frequency[q * numberOfVariables + c]); 209 208 idx++; 210 209 yield return weight[q] * k;
Note: See TracChangeset
for help on using the changeset viewer.