Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ near
Function
near
dlib/test/tfidf.cpp:21–21 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
using sparse_type = std::vector<std::pair<unsigned long,double>>;
20
21
bool near (double a, double b) { return std::abs(a-b) < 1e-12; }
22
23
// Three documents over terms 0 to 3:
24
// term: 0 1 2 3
Callers
4
test_defaults
Function · 0.85
test_term_selection
Function · 0.85
test_weighting_options
Function · 0.85
test_edge_cases
Function · 0.85
Calls
1
abs
Function · 0.85
Tested by
no test coverage detected