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

Method GetWeight

libs/search/doc_vec.cpp:105–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105double DocVec::GetWeight(IdfMap & idfs, size_t i) const
106{
107 ASSERT_LESS(i, m_tfs.size(), ());
108 return GetWeightImpl(idfs, m_tfs[i], false /* isPrefix */);
109}
110
111// QueryVec ----------------------------------------------------------------------------------------
112QueryVec::QueryVec(IdfMap & idfs, Builder const & builder) : m_idfs(&idfs), m_prefix(builder.m_prefix)

Callers 4

FillWeightsFunction · 0.45
UNIT_TESTFunction · 0.45
SimilarityMethod · 0.45
DoMethod · 0.45

Calls 2

GetWeightImplFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected