Beispiel #1
0
        public void IntGaussianMutationManager_CommandValuesAreMoeLikely()
        {
            var minValue        = -11;
            var maxValue        = 11;
            var mutationManager = new IntGaussianMutationManager(minValue, maxValue);

            mutationManager.AssertCommonValuesAreMoreLikely(maxValue / 2.0);
        }
Beispiel #2
0
        public void IntGaussianMutationManager_AssertValuesAreScattered()
        {
            var minValue        = -11;
            var maxValue        = 11;
            var mutationManager = new IntGaussianMutationManager(minValue, maxValue);

            mutationManager.AssertValuesAreScattered();
        }
Beispiel #3
0
        public void IntGaussianMutationManager_AllValuesWithinRange()
        {
            var minValue        = -5;
            var maxValue        = 5;
            var mutationManager = new IntGaussianMutationManager(minValue, maxValue);

            mutationManager.AssertAllValuesAreWithinRange(maxValue, minValue);
        }
Beispiel #4
0
        public void IntGaussianMutationManager_MutationHappensWithRightProbability()
        {
            var mutationManager = new IntGaussianMutationManager(-100, 100);

            mutationManager.CheckMutationsHappenWithRightProbability(g => g != 0);
        }