| 1642 | */ |
| 1643 | |
| 1644 | int getMinDistParPop( const double Cost, const ptype* const Params ) const |
| 1645 | { |
| 1646 | double* const s = ParValues; |
| 1647 | calcCentroidDists( Params, ParValues ); |
| 1648 | |
| 1649 | int pp = 0; |
| 1650 | double d = s[ pp ]; |
| 1651 | int i; |
| 1652 | |
| 1653 | for( i = 1; i < ParPopCount; i++ ) |
| 1654 | { |
| 1655 | if( s[ i ] <= d ) |
| 1656 | { |
| 1657 | pp = i; |
| 1658 | d = s[ i ]; |
| 1659 | } |
| 1660 | } |
| 1661 | |
| 1662 | return( pp ); |
| 1663 | } |
| 1664 | }; |
| 1665 | |
| 1666 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected