- Timestamp:
- 04/16/13 13:13:41 (11 years ago)
- Location:
- branches/OaaS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 23 24 packages
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/OaaS/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
-
branches/OaaS/HeuristicLab.Algorithms.DataAnalysis/3.4
- Property svn:ignore
-
old new 5 5 *.vs10x 6 6 Plugin.cs 7 *.user
-
- Property svn:ignore
-
branches/OaaS/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/AlglibUtil.cs
r7259 r9363 45 45 return matrix; 46 46 } 47 public static double[,] PrepareAndScaleInputMatrix(Dataset dataset, IEnumerable<string> variables, IEnumerable<int> rows, Scaling scaling) { 48 List<string> variablesList = variables.ToList(); 49 List<int> rowsList = rows.ToList(); 50 51 double[,] matrix = new double[rowsList.Count, variablesList.Count]; 52 53 int col = 0; 54 foreach (string column in variables) { 55 var values = scaling.GetScaledValues(dataset, column, rows); 56 int row = 0; 57 foreach (var value in values) { 58 matrix[row, col] = value; 59 row++; 60 } 61 col++; 62 } 63 64 return matrix; 65 } 47 66 } 48 67 }
Note: See TracChangeset
for help on using the changeset viewer.