Changeset 9297 for branches/CMAES/HeuristicLab.Algorithms.CMAEvolutionStrategy/3.3/CMAOperators/CMAEqualweightedRecombinator.cs
- Timestamp:
- 03/07/13 16:13:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CMAES/HeuristicLab.Algorithms.CMAEvolutionStrategy/3.3/CMAOperators/CMAEqualweightedRecombinator.cs
r9129 r9297 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Data;25 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 25 … … 39 38 } 40 39 41 protected override DoubleArrayGetWeights(int mu) {42 var weights = new DoubleArray(mu);40 protected override double[] GetWeights(int mu) { 41 var weights = new double[mu]; 43 42 for (int i = 0; i < mu; i++) 44 43 weights[i] = 1.0 / mu;
Note: See TracChangeset
for help on using the changeset viewer.