Changeset 957 for cpp/frams/genetics/fH


Ignore:
Timestamp:
06/25/20 16:31:25 (4 years ago)
Author:
Maciej Komosinski
Message:

Replace magic "100" with GenoOperators::NEUROCLASS_PROP_OFFSET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fH/fH_oper.cpp

    r935 r957  
    390390                        // if it is weight, then method needs to use mutateNeuProperty
    391391                        double current = par.getDouble(id);
    392                         par.setDouble(id, mutateNeuProperty(current, NULL, -1));
     392                        par.setDouble(id, mutateNeuronProperty(current, NULL, -1));
    393393                }
    394394        }
     
    439439                if (*par.type(i) == 'f')
    440440                {
    441                         double change = mutateNeuProperty(par.getDouble(i), &neu, 100 + i);
     441                        double change = mutateNeuronProperty(par.getDouble(i), &neu, GenoOperators::NEUROCLASS_PROP_OFFSET + i);
    442442                        par.setDouble(i, change);
    443443                }
     
    467467        {
    468468                nc = getRandomNeuroClass(Model::SHAPE_BALL_AND_STICK);
    469                 // checking of neuron class availability should be checked before
     469                // checking of neuron class availability should be done before
    470470        }
    471471
Note: See TracChangeset for help on using the changeset viewer.