| 1955 | */ |
| 1956 | |
| 1957 | void updateDiffValues() |
| 1958 | { |
| 1959 | int i; |
| 1960 | |
| 1961 | if( (ptype) 0.25 == 0 ) |
| 1962 | { |
| 1963 | for( i = 0; i < ParamCount; i++ ) |
| 1964 | { |
| 1965 | const double d = MaxValues[ i ] - MinValues[ i ]; |
| 1966 | |
| 1967 | DiffValues[ i ] = d * MantMultI; |
| 1968 | DiffValuesI[ i ] = MantMult / d; |
| 1969 | } |
| 1970 | } |
| 1971 | else |
| 1972 | { |
| 1973 | for( i = 0; i < ParamCount; i++ ) |
| 1974 | { |
| 1975 | DiffValues[ i ] = MaxValues[ i ] - MinValues[ i ]; |
| 1976 | DiffValuesI[ i ] = 1.0 / DiffValues[ i ]; |
| 1977 | } |
| 1978 | } |
| 1979 | } |
| 1980 | |
| 1981 | /** |
| 1982 | * Function updates BestCost value and BestValues array, if the specified |
nothing calls this directly
no outgoing calls
no test coverage detected