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
phylo
fastcodeml
Commits
78a52c80
Commit
78a52c80
authored
Mar 04, 2016
by
omid
Browse files
correcting a bug related to initializing (using command line parameters)
when branch lengths are not set to fixed
parent
5223be55
Changes
1
Hide whitespace changes
Inline
Side-by-side
BranchSiteModel.cpp
View file @
78a52c80
...
...
@@ -352,10 +352,9 @@ void BranchSiteModel::initFromParams(void) {
throw
FastCodeMLFatal
(
"Invalid p0 and p1 values"
);
//
if
(
p0
+
p1
>
1
)
throw
FastCodeMLFatal
(
"Invalid p0 and p1 values"
);
mVar
[
0
]
=
log
((
p0
)
/
(
1
-
p0
-
p1
));
// log(p0); // p0 -> x0
mVar
[
mNumTimes
+
0
]
=
log
((
p0
)
/
(
1
-
p0
-
p1
));
// log(p0); // p0 -> x0
mVar
[
1
]
=
log
((
p1
)
/
(
1
-
p0
-
p1
));
// log(p1); // p1 -> x1
mVar
[
mNumTimes
+
1
]
=
log
((
p1
)
/
(
1
-
p0
-
p1
));
// log(p1); // p1 -> x1
#else
if
(
p0
<
0
||
p1
<
0
||
(
p0
+
p1
)
<
1e-15
)
throw
FastCodeMLFatal
(
"Invalid p0 and p1 values"
);
...
...
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