public static Swap2Move[] Apply(Permutation permutation, IRandom random, int sampleSize)
        {
            int length = permutation.Length;

            Swap2Move[] moves = new Swap2Move[sampleSize];
            for (int i = 0; i < sampleSize; i++)
            {
                moves[i] = StochasticSwap2SingleMoveGenerator.Apply(permutation, random);
            }
            return(moves);
        }
Esempio n. 2
0
 protected StochasticSwap2SingleMoveGenerator(StochasticSwap2SingleMoveGenerator original, Cloner cloner) : base(original, cloner)
 {
 }
 protected StochasticSwap2SingleMoveGenerator(StochasticSwap2SingleMoveGenerator original, Cloner cloner) : base(original, cloner) { }