MCPcopy 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_defaultsFunction · 0.85
test_term_selectionFunction · 0.85
test_weighting_optionsFunction · 0.85
test_edge_casesFunction · 0.85

Calls 1

absFunction · 0.85

Tested by

no test coverage detected