private void initializeSettings() { TREE_DEPTH_LIST = new uint[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; FITNESS_TYPES = new uint[] { 1, 0 }; SELECTION_METHODS = new uint[] { 0, 1, 2 }; _inCrossoverRate = _gpContainer._crossoverRate; _inMutationRate = _gpContainer._mutationRate; _inPopulationSize = (uint)_gpContainer._populationSize; _inFitnessType = (uint)_gpContainer._fitnessType; _inTreeBranching = _gpContainer._maxBranching; _inTreeDepth = _gpContainer._maxDepth; _inElitismPercentage = _gpContainer._elitismPercentage; _inEvaluationDepth = _gpContainer._evalDepth; _inTournamentSelectionSize = _gpContainer._tournamentSelectionSize; _inSelectionType = (uint)_gpContainer._selectionType; applyChanges = new RelayCommand(x => _takeAction(), x => true); _bestFitnesses = new ChartWrapper(_gpContainer._statistics._bestFitnesses, _gpContainer._statistics._generationLabels, "Fitness", Brushes.IndianRed, Brushes.Transparent); _averageFitnesses = new ChartWrapper(_gpContainer._statistics._averageFitnesses, _gpContainer._statistics._generationLabels, "Fitness", Brushes.DarkCyan, Brushes.Transparent); _worstFitnesses = new ChartWrapper(_gpContainer._statistics._worstFitnesses, _gpContainer._statistics._generationLabels, "Fitness", Brushes.Green, Brushes.Transparent); _averageBranchings = new ChartWrapper(_gpContainer._statistics._averageBranchings, _gpContainer._statistics._generationLabels, "Avg branching", Brushes.DeepPink, Brushes.Transparent); _averageDepths = new ChartWrapper(_gpContainer._statistics._averageDepths, _gpContainer._statistics._generationLabels, "Avg depth", Brushes.DarkGray, Brushes.Transparent); _operatorCount = new ChartWrapper(_gpContainer._statistics._opCount, _gpContainer._statistics._generationLabels); _positionsSolved = new ChartWrapper(_gpContainer._statistics._positionsSolved, _gpContainer._statistics._generationLabels, "Test positions correct", Brushes.DarkGoldenrod, Brushes.Transparent); }
public ChartWrapperPropertiesHolder(ChartWrapper chartWrapper) { m_chartWrapper = chartWrapper; }
public ChartWrapperPropertiesHolder(ChartWrapper chartWrapper) { m_chartWrapper = chartWrapper; }