Changeset 8484 for trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GaussianProcessFunctionsTest.cs
- Timestamp:
- 08/14/12 13:25:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GaussianProcessFunctionsTest.cs
r8473 r8484 904 904 var hyp = Enumerable.Repeat(hypValue, nHyp).ToArray(); 905 905 cf.SetParameter(hyp); 906 cf.SetData(x, xt);907 906 908 907 int rows0 = x.GetLength(0); … … 911 910 for (int i = 0; i < rows0; i++) 912 911 for (int j = 0; j < rows1; j++) 913 actualCov[i, j] = cf.GetC ovariance(i, j);912 actualCov[i, j] = cf.GetCrossCovariance(x, xt, i, j); 914 913 915 914 AssertEqual(expectedCov, actualCov, delta); … … 917 916 for (int i = 0; i < rows0; i++) 918 917 for (int j = 0; j < rows1; j++) { 918 var g = cf.GetGradient(x, i, j).ToArray(); 919 919 for (int k = 0; k < nHyp; k++) 920 Assert.AreEqual(expectedGradients[k][i, j], cf.GetGradient(i, j, k), delta);920 Assert.AreEqual(expectedGradients[k][i, j], g[k], delta); 921 921 } 922 922 }
Note: See TracChangeset
for help on using the changeset viewer.