Changeset 9226 for branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Creators
- Timestamp:
- 02/18/13 16:51:42 (12 years ago)
- Location:
- branches/LearningClassifierSystems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems
- Property svn:ignore
-
old new 1 1 *.suo 2 bin
-
- Property svn:ignore
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Creators/UniformRandomVariableVectorCreator.cs
r9194 r9226 20 20 #endregion 21 21 22 using System.Linq;23 22 using HeuristicLab.Common; 24 23 using HeuristicLab.Core; 25 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 25 27 namespace HeuristicLab.Encodings.VariableVector .Creators{26 namespace HeuristicLab.Encodings.VariableVector { 28 27 [Item("UniformRandomVariableVectorCreator", "Description missing")] 29 28 [StorableClass] … … 46 45 47 46 protected override VariableVector Create(IRandom random, VariableVector sampleVariableVector, double spreadPercentage) { 48 var result = new VariableVector(sampleVariableVector.Condition.Values.Select(x => x.GetEmptyCopy()), sampleVariableVector.Action.Values.Select(x => x.GetEmptyCopy()));47 var result = sampleVariableVector.GetEmptyCopy(); 49 48 result.Randomize(random, spreadPercentage); 50 49 return result;
Note: See TracChangeset
for help on using the changeset viewer.