Ignore:
Timestamp:
06/07/17 12:01:16 (5 years ago)
Author:
Maciej Komosinski
Message:
  • fF foraminifera encoding supports scaling (radius) of the initial chamber (three new parameters added: radii for x,y,z)
  • mutation ignores these three parameters
  • float -> double for consistency everywhere
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fF/oper_fF.cpp

    r513 r667  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2017  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    4848        fF_growth_params par;
    4949        par.load(gene);
    50         int which = randomN(par.param.getPropCount());
    51         bool mutated_ok = GenoOperators::mutatePropertyNaive(par.param, which);
     50        static const int propsToMutate[] = fF_PROPS_TO_MUTATE;
     51        int which = randomN(ARRAY_LENGTH(propsToMutate));
     52        bool mutated_ok = GenoOperators::mutatePropertyNaive(par.param, propsToMutate[which]);
    5253        if (mutated_ok)
    5354        {
Note: See TracChangeset for help on using the changeset viewer.