Changeset 12395 for branches/HiveStatistics/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Manipulators/SomePositionsBitflipManipulator.cs
- Timestamp:
- 05/20/15 16:41:14 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Encodings.BinaryVectorEncoding
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/HLScript/HeuristicLab.Encodings.BinaryVectorEncoding merged eligible /stable/HeuristicLab.Encodings.BinaryVectorEncoding merged eligible /trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.Encodings.BinaryVectorEncoding 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.Encodings.BinaryVectorEncoding 5516-5520 /branches/Benchmarking/sources/HeuristicLab.Encodings.BinaryVectorEncoding 6917-7005 /branches/CloningRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding 4656-4721 /branches/CodeEditor/HeuristicLab.Encodings.BinaryVectorEncoding 11700-11806 /branches/DataAnalysis Refactoring/HeuristicLab.Encodings.BinaryVectorEncoding 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Encodings.BinaryVectorEncoding 5815-6180 /branches/DataAnalysis/HeuristicLab.Encodings.BinaryVectorEncoding 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.Encodings.BinaryVectorEncoding 10085-11101 /branches/GP.Grammar.Editor/HeuristicLab.Encodings.BinaryVectorEncoding 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Encodings.BinaryVectorEncoding 5060 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Encodings.BinaryVectorEncoding 6123-9799 /branches/LogResidualEvaluator/HeuristicLab.Encodings.BinaryVectorEncoding 10202-10483 /branches/NET40/sources/HeuristicLab.Encodings.BinaryVectorEncoding 5138-5162 /branches/NSGA-II Changes/HeuristicLab.Encodings.BinaryVectorEncoding 12033-12122 /branches/ParallelEngine/HeuristicLab.Encodings.BinaryVectorEncoding 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Encodings.BinaryVectorEncoding 7568-7810 /branches/ProgrammableProblem/HeuristicLab.Encodings.BinaryVectorEncoding 11774-11959 /branches/QAPAlgorithms/HeuristicLab.Encodings.BinaryVectorEncoding 6350-6627 /branches/Restructure trunk solution/HeuristicLab.Encodings.BinaryVectorEncoding 6828 /branches/RuntimeOptimizer/HeuristicLab.Encodings.BinaryVectorEncoding 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.BinaryVectorEncoding 7787-8333 /branches/SlaveShutdown/HeuristicLab.Encodings.BinaryVectorEncoding 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.Encodings.BinaryVectorEncoding 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.Encodings.BinaryVectorEncoding 5370-5682 /branches/Trunk/HeuristicLab.Encodings.BinaryVectorEncoding 6829-6865 /branches/UnloadJobs/HeuristicLab.Encodings.BinaryVectorEncoding 9168-9215 /branches/VNS/HeuristicLab.Encodings.BinaryVectorEncoding 5594-5752 /branches/histogram/HeuristicLab.Encodings.BinaryVectorEncoding 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/HiveStatistics/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Manipulators/SomePositionsBitflipManipulator.cs
r11205 r12395 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 39 40 /// Mmutation probability for each position. 40 41 /// </summary> 41 public ValueLookupParameter<DoubleValue> MutationProbabilityParameter {42 get { return ( ValueLookupParameter<DoubleValue>)Parameters["MutationProbability"]; }42 public IValueLookupParameter<DoubleValue> MutationProbabilityParameter { 43 get { return (IValueLookupParameter<DoubleValue>)Parameters["MutationProbability"]; } 43 44 } 44 45 … … 78 79 /// <param name="realVector">The vector of binary values to manipulate.</param> 79 80 protected override void Manipulate(IRandom random, BinaryVector binaryVector) { 80 Apply(random, binaryVector, MutationProbabilityParameter.Value); 81 if (MutationProbabilityParameter.ActualValue == null) throw new InvalidOperationException("SomePositionsBitflipManipulator: Parameter " + MutationProbabilityParameter.ActualName + " could not be found."); 82 Apply(random, binaryVector, MutationProbabilityParameter.ActualValue); 81 83 } 82 84 }
Note: See TracChangeset
for help on using the changeset viewer.