Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
8c62b4a4
Commit
8c62b4a4
authored
Apr 03, 2015
by
Mikaël Salson
Browse files
segment: the probability of not having a system
depends on 1 - index_load, not the opposite
parent
0b8a6e8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/core/segment.cpp
View file @
8c62b4a4
...
...
@@ -372,7 +372,7 @@ double KmerSegmenter::getProbabilityAtLeastOrAbove(int at_least) const {
for
(
int
i
=
at_least
;
i
<=
n
;
i
++
)
{
proba
+=
nChoosek
(
n
,
i
)
*
probability_having_system
*
probability_not_having_system
;
probability_having_system
*=
index_load
;
probability_not_having_system
/=
index_load
;
probability_not_having_system
/=
(
1
-
index_load
)
;
}
return
proba
;
...
...
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