Changeset 18027 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Friedman/FriedmanRandomFunction.cs
- Timestamp:
- 07/20/21 18:13:55 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.Instances.DataAnalysis merged: 17931,17966-17967,17969,17973-17974
- Property svn:mergeinfo changed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Friedman/FriedmanRandomFunction.cs
r17180 r18027 121 121 // mu is generated from same distribution as x 122 122 double[] mu = Enumerable.Range(0, nl).Select(_ => random.NextDouble() * 2 - 1).ToArray(); 123 double[,] v = new double[nl, nl];124 123 var condNum = 4.0 / 0.01; // as given in the paper for max and min eigen values 125 124 … … 128 127 alglib.math.rndobject = new System.Random(random.Next()); 129 128 130 alglib. matgen.spdmatrixrndcond(nl, condNum, refv);129 alglib.spdmatrixrndcond(nl, condNum, out var v); 131 130 // restore 132 131 alglib.math.rndobject = curRand; … … 137 136 for (int i = 0; i < nRows; i++) { 138 137 for (int j = 0; j < nl; j++) z[j] = xs[j][i] - mu[j]; 139 alglib. ablas.rmatrixmv(nl, nl, v, 0, 0, 0, z, 0, ref y, 0);138 alglib.rmatrixmv(nl, nl, v, 0, 0, 0, z, 0, ref y, 0); 140 139 141 140 // dot prod
Note: See TracChangeset
for help on using the changeset viewer.