void pick ( hls::stream <MType> marginStrm [K], hls::stream <bool>& eMarginStrm, hls::stream <ap_uint <32>>& retStrm, hls::stream <bool>& eRetStrm, ap_uint <32> ws )
pick best weight vector for classification
Parameters:
marginStrm | margin stream. To get a vector of L margins, marginStrm will be read (L + K - 1) / D times. Margin 0 to K-1 will be read from marginStrm[0] to marginStrm[D-1] at the first time. Then margin D to 2*D - 1. The last round will readin fake data if L is not divisiable by K. These data won’t be used, just to allign K streams. |
eMarginStrm | Endflag of marginStrm. |
retStrm | result stream of classification. |
eRetStrm | Endflag of retStrm. |
ws | number of weight vectors used. |