Changeset 968 for cpp/frams/genetics/f4


Ignore:
Timestamp:
06/30/20 00:30:39 (4 years ago)
Author:
Maciej Komosinski
Message:

Introduced a separate function to mutate neuron connection weight

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/f4_oper.cpp

    r967 r968  
    451451        }
    452452        // weight
    453         nn->f1 = GenoOperators::getMutatedNeuroClassProperty(nn->f1, NULL, -1);
     453        nn->f1 = GenoOperators::getMutatedNeuronConnectionWeight(nn->f1);
    454454        //nn->f1 = 10.0f * (rndDouble(1) - 0.5f);
    455455}
     
    488488                break;
    489489        case 2: // change weight
    490                 nn->f1 = GenoOperators::getMutatedNeuroClassProperty(nn->f1, NULL, -1);
     490                nn->f1 = GenoOperators::getMutatedNeuronConnectionWeight(nn->f1);
    491491                //nn->f1 += 1.0f * (rndDouble(1) - 0.5f);
    492492                break;
Note: See TracChangeset for help on using the changeset viewer.