Changeset 2914 for trunk/sources/HeuristicLab.Encodings.RealVector
- Timestamp:
- 03/02/10 18:01:49 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.RealVector/3.3
- Files:
-
- 10 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVector/3.3/Crossovers/BlendAlphaCrossover.cs
r2913 r2914 55 55 /// Here min_i and max_i are the smaller and larger value of the two parents at position i and d is max_i - min_i. 56 56 /// </summary> 57 /// <exception cref="ArgumentException">Thrown when <paramref name="parent1"/> and <paramref name="parent2"/> are of different length.</exception> 57 /// <exception cref="ArgumentException"> 58 /// Thrown when <paramref name="parent1"/> and <paramref name="parent2"/> are of different length or<br/> 59 /// when <paramref name="alpha"/> is less than 0. 60 /// </exception> 58 61 /// <param name="random">The random number generator.</param> 59 62 /// <param name="parent1">The first parent for the crossover operation.</param> … … 63 66 public static DoubleArrayData Apply(IRandom random, DoubleArrayData parent1, DoubleArrayData parent2, DoubleData alpha) { 64 67 if (parent1.Length != parent2.Length) throw new ArgumentException("BlendAlphaCrossover: The parents' vectors are of different length.", "parent1"); 68 if (alpha.Value < 0) throw new ArgumentException("BlendAlphaCrossover: Paramter alpha must be greater or equal than 0.", "alpha"); 65 69 int length = parent1.Length; 66 70 DoubleArrayData result = new DoubleArrayData(length); -
trunk/sources/HeuristicLab.Encodings.RealVector/3.3/HeuristicLab.Encodings.RealVector-3.3.csproj
r2913 r2914 96 96 </Compile> 97 97 <Compile Include="HeuristicLabEncodingsRealVectorPlugin.cs" /> 98 <Compile Include="Manipulators\UniformOnePositionManipulator.cs" /> 98 99 <None Include="HeuristicLab.snk" /> 99 100 <None Include="Properties\AssemblyInfo.frame" /> … … 137 138 </ProjectReference> 138 139 </ItemGroup> 139 <ItemGroup>140 <Folder Include="Manipulators\" />141 </ItemGroup>142 140 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 143 141 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.