MCPcopy Create free account
hub / github.com/avaneev/biteopt / getMinDistParPop

Method getMinDistParPop

biteaux.h:1644–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected