- Timestamp:
- 03/15/10 23:49:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.IntVector/3.3/Creators/UniformRandomIntVectorCreator.cs
r3032 r3048 43 43 /// <param name="max">The maximum value of the sampling range for each vector element (exclusive).</param> 44 44 /// <returns>The newly created integer vector.</returns> 45 public static IntArray DataApply(IRandom random, int length, int min, int max) {45 public static IntArray Apply(IRandom random, int length, int min, int max) { 46 46 int[] result = new int[length]; 47 47 for (int i = 0; i < length; i++) 48 48 result[i] = random.Next(min, max); 49 return new IntArray Data(result);49 return new IntArray(result); 50 50 } 51 51 … … 58 58 /// <param name="maximum">The maximum value of the sampling range for each vector element (exclusive).</param> 59 59 /// <returns>The newly created int vector.</returns> 60 protected override IntArray Data Create(IRandom random, IntData length, IntData minimum, IntDatamaximum) {60 protected override IntArray Create(IRandom random, IntValue length, IntValue minimum, IntValue maximum) { 61 61 return Apply(random, length.Value, minimum.Value, maximum.Value); 62 62 }
Note: See TracChangeset
for help on using the changeset viewer.