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
vidjil
vidjil
Commits
6b3c13d8
Commit
6b3c13d8
authored
Nov 01, 2014
by
Mathieu Giraud
Browse files
core/dynprog.cpp: remove dead code
parent
11a88c98
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/core/dynprog.cpp
View file @
6b3c13d8
...
...
@@ -452,35 +452,6 @@ void DynProg::backtrack()
// cout << str_back << endl ;
}
string
DynProg
::
SemiGlobal_extract_best
()
{
// for count
// TODO: faire un vrai backtrack
// marche avec Identity, prend quelques caracteres avant (+ best_score)
int
start_j
=
max
(
0
,
best_j
-
m
+
best_score
)
;
return
y
.
substr
(
start_j
,
best_j
-
start_j
);
}
void
DynProg
::
SemiGlobal_hits_threshold
(
vector
<
int
>
&
hits
,
int
threshold
,
int
shift_pos
,
int
verbose
)
{
// for cut
for
(
int
j
=
1
;
j
<=
n
;
j
++
)
{
if
(
S
[
m
][
j
]
>
threshold
)
{
if
(
verbose
)
{
cout
<<
j
<<
","
;
}
hits
.
push_back
(
max
(
0
,
j
-
shift_pos
))
;
}
}
}
float
identity_percent
(
int
score
)
{
...
...
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