void pickFromK ( MType margin [K], ap_uint <32> counter, ap_uint <32> ws, MType& maxMargin, ap_uint <32>& maxIndex )
pick best weight vector for classification from K vectors
Parameters:
margin | K margins generate by K weight vectors. |
counter | start index of this K margins in all margins. |
ws | number of margins |
maxMargin | max of K margins. |
maxIndex | which index does max margin sits. |