Skip to content
GitLab
Menu
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
89511eeb
Commit
89511eeb
authored
Nov 14, 2017
by
Amir MOHAMMADI
Browse files
rename check_index to index
parent
d9ff46cb
Pipeline
#14054
passed with stages
in 15 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/cpp/error.cpp
View file @
89511eeb
...
...
@@ -127,9 +127,9 @@ double bob::measure::farThreshold(const blitz::Array<double, 1> &negatives,
// is done by counting the number of repeated samples at the end of
// negatives.
double
counter
=
1.
;
int
check_
index
=
neg
.
extent
(
0
)
-
1
;
while
(
check_
index
>=
1
&&
neg
(
check_
index
)
==
neg
(
check_
index
-
1
))
{
--
check_
index
;
int
index
=
neg
.
extent
(
0
)
-
1
;
while
(
index
>=
1
&&
neg
(
index
)
==
neg
(
index
-
1
))
{
--
index
;
++
counter
;
}
// if requested FAR is less than the least possible value. We cannot reach
...
...
@@ -143,7 +143,7 @@ double bob::measure::farThreshold(const blitz::Array<double, 1> &negatives,
return
std
::
numeric_limits
<
double
>::
quiet_NaN
();
}
int
index
=
neg
.
extent
(
0
)
-
1
;
index
=
neg
.
extent
(
0
)
-
1
;
// far == 0 is a corner case
if
(
far_value
<=
1e-12
)
...
...
@@ -193,9 +193,9 @@ double bob::measure::frrThreshold(const blitz::Array<double, 1> &,
// is done by counting the number of repeated samples at the beginning of
// positives.
double
counter
=
1.
;
int
check_
index
=
0
;
while
(
check_
index
<
pos
.
extent
(
0
)
-
1
&&
pos
(
check_
index
)
==
pos
(
check_
index
+
1
))
{
++
check_
index
;
int
index
=
0
;
while
(
index
<
pos
.
extent
(
0
)
-
1
&&
pos
(
index
)
==
pos
(
index
+
1
))
{
++
index
;
++
counter
;
}
// if requested FRR is less than the least possible value. We cannot reach
...
...
@@ -209,7 +209,7 @@ double bob::measure::frrThreshold(const blitz::Array<double, 1> &,
return
std
::
numeric_limits
<
double
>::
quiet_NaN
();
}
int
index
=
0
;
index
=
0
;
// frr == 0 is a corner case
if
(
frr_value
<=
1e-12
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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