| 2203 | */ |
| 2204 | |
| 2205 | void genInitParamsReal( CBiteRnd& rnd, double* const Params ) const |
| 2206 | { |
| 2207 | int i; |
| 2208 | |
| 2209 | if( UseStartParams ) |
| 2210 | { |
| 2211 | if( CurPopPos == 0 ) |
| 2212 | { |
| 2213 | for( i = 0; i < ParamCount; i++ ) |
| 2214 | { |
| 2215 | Params[ i ] = wrapParamReal( rnd, StartParams[ i ], i ); |
| 2216 | } |
| 2217 | } |
| 2218 | else |
| 2219 | { |
| 2220 | for( i = 0; i < ParamCount; i++ ) |
| 2221 | { |
| 2222 | Params[ i ] = wrapParamReal( rnd, rnd.getGaussian() * |
| 2223 | StartSD * DiffValues[ i ] + StartParams[ i ], i ); |
| 2224 | } |
| 2225 | } |
| 2226 | } |
| 2227 | else |
| 2228 | { |
| 2229 | for( i = 0; i < ParamCount; i++ ) |
| 2230 | { |
| 2231 | Params[ i ] = wrapParamReal( rnd, rnd.getGaussian() * |
| 2232 | StartSD * DiffValues[ i ] + |
| 2233 | MinValues[ i ] + DiffValues[ i ] * 0.5, i ); |
| 2234 | } |
| 2235 | } |
| 2236 | } |
| 2237 | |
| 2238 | /** |
| 2239 | * Function adds a selector to the Sels list. |
nothing calls this directly
no test coverage detected