mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Simplified code slightly.
This commit is contained in:
parent
d693e8f45b
commit
371e3f397a
@ -152,7 +152,7 @@ int main()
|
||||
samples.push_back(samp);
|
||||
|
||||
// if this point is less than 13 from the origin
|
||||
if (sqrt((double)r*r + c*c) <= 13)
|
||||
if (sqrt(r*r + c*c) <= 13)
|
||||
labels.push_back(+1);
|
||||
else
|
||||
labels.push_back(-1);
|
||||
|
Loading…
Reference in New Issue
Block a user