Changeset 13721 for trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GaussianProcessFunctionsTest.cs
- Timestamp:
- 03/23/16 16:19:04 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GaussianProcessFunctionsTest.cs
r12012 r13721 1747 1747 int rows1 = xt.GetLength(0); 1748 1748 var actualCov = new double[rows0, rows1]; 1749 var covFunction = cf.GetParameterizedCovarianceFunction(hyp, Enumerable.Range(0, x.GetLength(1)) );1749 var covFunction = cf.GetParameterizedCovarianceFunction(hyp, Enumerable.Range(0, x.GetLength(1)).ToArray()); 1750 1750 for (int i = 0; i < rows0; i++) 1751 1751 for (int j = 0; j < rows1; j++) … … 1769 1769 int nHyp = mf.GetNumberOfParameters(x.GetLength(1)); 1770 1770 var hyp = Enumerable.Repeat(hypValue, nHyp).ToArray(); 1771 var meanFunction = mf.GetParameterizedMeanFunction(hyp, Enumerable.Range(0, x.GetLength(1)) );1771 var meanFunction = mf.GetParameterizedMeanFunction(hyp, Enumerable.Range(0, x.GetLength(1)).ToArray()); 1772 1772 1773 1773 var m = Enumerable.Range(0, xt.GetLength(0)).Select(i => meanFunction.Mean(xt, i)).ToArray();
Note: See TracChangeset
for help on using the changeset viewer.