Changeset 9301 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding
- Timestamp:
- 03/08/13 13:02:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Creators/NormalDistributedRealVectorCreator.cs
r9265 r9301 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 29 using HeuristicLab.Random; 29 using System;30 30 31 31 namespace HeuristicLab.Encodings.RealVectorEncoding { … … 110 110 do { 111 111 result[i] = mean[i] + sigma[i % sigma.Length] * nd.NextDouble(); 112 inRange = result[i] >= bounds[i % sigma.Length, 0] && result[i] < bounds[i % sigma.Length, 1];112 inRange = result[i] >= bounds[i % bounds.Rows, 0] && result[i] < bounds[i % bounds.Rows, 1]; 113 113 count++; 114 114 } while (count < maximumTries && !inRange);
Note: See TracChangeset
for help on using the changeset viewer.