Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
b06c4512
Commit
b06c4512
authored
Mar 30, 2017
by
Manuel Günther
Browse files
Fixed negative index
parent
ff799ad1
Pipeline
#8282
failed with stages
in 10 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/cpp/error.cpp
View file @
b06c4512
...
...
@@ -102,7 +102,7 @@ double bob::measure::farThreshold(const blitz::Array<double,1>& negatives, const
// compute position of the threshold
double
crr
=
1.
-
far_value
;
// (Correct Rejection Rate; = 1 - FAR)
double
crr_index
=
crr
*
neg
.
extent
(
0
)
-
1.
;
double
crr_index
=
std
::
max
(
crr
*
neg
.
extent
(
0
)
-
1.
,
0.
)
;
// compute the index above the current CRR value
int
index
=
std
::
min
((
int
)
std
::
ceil
(
crr_index
),
neg
.
extent
(
0
)
-
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment