Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,695
Issues
1,695
List
Boards
Labels
Service Desk
Milestones
Merge Requests
87
Merge Requests
87
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
e3784ef4
Commit
e3784ef4
authored
Oct 31, 2017
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/dynprog.{cpp,h}: output costs in the format expected by -f and -C
See
#2076
.
parent
cd8d1183
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
algo/core/dynprog.cpp
algo/core/dynprog.cpp
+8
-0
algo/core/dynprog.h
algo/core/dynprog.h
+2
-0
No files found.
algo/core/dynprog.cpp
View file @
e3784ef4
...
@@ -90,6 +90,7 @@ void Cost::estimate_K_lambda()
...
@@ -90,6 +90,7 @@ void Cost::estimate_K_lambda()
ostream
&
operator
<<
(
ostream
&
out
,
const
Cost
&
cost
)
ostream
&
operator
<<
(
ostream
&
out
,
const
Cost
&
cost
)
{
{
if
(
cost
.
debug
)
out
<<
"("
<<
cost
.
match
out
<<
"("
<<
cost
.
match
<<
", "
<<
cost
.
mismatch
<<
", "
<<
cost
.
mismatch
<<
"/"
<<
cost
.
insertion
<<
"/"
<<
cost
.
insertion
...
@@ -100,6 +101,13 @@ ostream& operator<<(ostream& out, const Cost& cost)
...
@@ -100,6 +101,13 @@ ostream& operator<<(ostream& out, const Cost& cost)
<<
", "
<<
cost
.
homopolymer
<<
", "
<<
cost
.
homopolymer
<<
") "
<<
") "
<<
cost
.
K
<<
"/"
<<
cost
.
lambda
;
<<
cost
.
K
<<
"/"
<<
cost
.
lambda
;
else
out
<<
"
\"
"
<<
cost
.
match
<<
", "
<<
cost
.
mismatch
<<
", "
<<
cost
.
insertion
<<
", "
<<
cost
.
homopolymer
<<
", "
<<
cost
.
deletion_end
<<
"
\"
"
;
return
out
;
return
out
;
}
}
...
...
algo/core/dynprog.h
View file @
e3784ef4
...
@@ -26,6 +26,8 @@ typedef struct {
...
@@ -26,6 +26,8 @@ typedef struct {
class
Cost
class
Cost
{
{
public:
public:
bool
debug
=
false
;
int
match
;
int
match
;
int
mismatch
;
int
mismatch
;
...
...
Write
Preview
Markdown
is supported
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