- Timestamp:
- 02/19/10 02:15:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection/3.3/ProportionalSelector.cs
r2818 r2830 51 51 } 52 52 53 protected override ScopeList Select(ScopeListscopes) {53 protected override IScope[] Select(List<IScope> scopes) { 54 54 int count = NumberOfSelectedSubScopesParameter.ActualValue.Value; 55 55 bool copy = CopySelectedParameter.Value.Value; … … 57 57 bool maximization = MaximizationParameter.ActualValue.Value; 58 58 bool windowing = WindowingParameter.Value.Value; 59 ScopeList selected = new ScopeList();59 IScope[] selected = new IScope[count]; 60 60 61 61 // prepare qualities for proportional selection … … 91 91 } 92 92 if (copy) 93 selected .Add((IScope)scopes[index].Clone());93 selected[i] = (IScope)scopes[index].Clone(); 94 94 else { 95 selected .Add(scopes[index]);95 selected[i] = scopes[index]; 96 96 scopes.RemoveAt(index); 97 97 qualitySum -= list[index];
Note: See TracChangeset
for help on using the changeset viewer.