MCPcopy Create free account
hub / github.com/bab2min/tomotopy / getCountVector

Method getCountVector

src/TopicModel/LDA.h:158–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 std::vector<Float> getCountVector(size_t V) const
159 {
160 std::vector<Float> vs(V);
161 for (size_t i = 0; i < words.size(); ++i)
162 {
163 if (words[i] >= V) continue;
164 vs[words[i]] += wordWeights.empty() ? 1.f : wordWeights[i];
165 }
166 return vs;
167 }
168 };
169
170 struct LDAArgs

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected