| 34 | } |
| 35 | |
| 36 | double GetSqrWeightImpl(IdfMap & idfs, TokenFrequencyPair const & tf, bool isPrefix) |
| 37 | { |
| 38 | auto const w = GetWeightImpl(idfs, tf, isPrefix); |
| 39 | return w * w; |
| 40 | } |
| 41 | |
| 42 | // Computes squared L2 norm of vector of tokens. |
| 43 | double SqrL2(IdfMap & idfs, vector<TokenFrequencyPair> const & tfs) |
no test coverage detected