private int getGainChangePointID ( int lngain ) { for ( int i = 0 ; i < ID_GAIN ; i ++ ) { if ( lngain == LN_GAIN [ i ] ) return i ; } return 0 ; //shouldn't happen }
transformes the exponent value of the gain to the id of the gain change point