Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ approx_equal
Function
approx_equal
dlib/test/kcentroid.cpp:79–82 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
77
};
78
79
bool approx_equal(double a, double b)
80
{
81
return (std::abs(a-b) < 1000*(std::numeric_limits<double>::epsilon()));
82
}
83
84
bool approx_equal(double a, double b, double eps)
85
{
Callers
4
test_kcentroid_with_linear_kernel
Function · 0.70
test_kcentroid_with_offset_linear_kernel
Function · 0.70
test_kcentroid_with_sparse_linear_kernel
Function · 0.70
test_kcentroid_with_offset_sparse_linear_kernel
Function · 0.70
Calls
1
abs
Function · 0.85
Tested by
no test coverage detected