Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/12/15 20:40:11 (9 years ago)
Author:
gkronber
Message:

#2283: added shuffling of terminal symbols to the royal pair problem to make sure that there is no bias from order of terminal symbols.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Problems.GrammaticalOptimization/Problems/RoyalSequenceProblem.cs

    r12099 r12391  
    2424    private readonly SortedSet<char>[] optimalSymbolsForPos;
    2525    public string Name { get { return "RoyalSequence"; } }
    26     public RoyalSequenceProblem(Random rand, int alphabetSize, int sequenceLen, int k = 1, double correctReward = 1.0, double incorrectReward = 0.0) {
     26    public RoyalSequenceProblem(System.Random rand, int alphabetSize, int sequenceLen, int k = 1, double correctReward = 1.0, double incorrectReward = 0.0) {
    2727      if (alphabetSize <= 0 || alphabetSize > 26) throw new ArgumentException();
    2828      if (sequenceLen <= 0) throw new ArgumentException();
Note: See TracChangeset for help on using the changeset viewer.