Changeset 5530
- Timestamp:
- 02/21/11 17:52:58 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionSolution.cs
r5507 r5530 22 22 using System.Collections.Generic; 23 23 namespace HeuristicLab.Problems.DataAnalysis { 24 public interface IRegression nSolution : IDataAnalysisSolution {24 public interface IRegressionSolution : IDataAnalysisSolution { 25 25 new IRegressionModel Model { get; } 26 26 new IRegressionProblemData ProblemData { get; } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/OnlineEvaluators/OnlineMeanAndVarianceCalculator.cs
r5491 r5530 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 24 25 namespace HeuristicLab.Problems.DataAnalysis { … … 77 78 } 78 79 } 80 81 public static void Calculate(IEnumerable<double> x, out double mean, out double variance) { 82 OnlineMeanAndVarianceCalculator meanAndVarianceCalculator = new OnlineMeanAndVarianceCalculator(); 83 foreach (double xi in x) { 84 meanAndVarianceCalculator.Add(xi); 85 } 86 mean = meanAndVarianceCalculator.Mean; 87 variance = meanAndVarianceCalculator.Variance; 88 } 79 89 } 80 90 }
Note: See TracChangeset
for help on using the changeset viewer.