MCPcopy Create free account
hub / github.com/comaps/comaps / GetSqrWeightImpl

Function GetSqrWeightImpl

libs/search/doc_vec.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36double 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.
43double SqrL2(IdfMap & idfs, vector<TokenFrequencyPair> const & tfs)

Callers 1

SqrL2Function · 0.85

Calls 1

GetWeightImplFunction · 0.85

Tested by

no test coverage detected