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
Lenstool
Lenstool
Commits
ce2c9637
Commit
ce2c9637
authored
Nov 28, 2020
by
Johan Richard
Browse files
Check sigma and sigma2 >0
parent
60e0e427
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/readBayesModels.c
View file @
ce2c9637
...
...
@@ -294,6 +294,11 @@ void setBayesModel( long int iVal, long int nVal, double **array)
if
(
sblock
[
i
][
ipx
]
!=
0
)
o_set_source
(
&
source
[
i
],
ipx
,
method
(
nVal
,
iParam
++
,
array
));
if
((
sblock
[
i
][
SA
]
!=
0
)
&
(
source
[
i
].
E
.
a
<
0
))
source
[
i
].
E
.
a
=-
source
[
i
].
E
.
a
;
if
((
sblock
[
i
][
SA2
]
!=
0
)
&
(
source
[
i
].
E2
.
a
<
0
))
source
[
i
].
E2
.
a
=-
source
[
i
].
E2
.
a
;
if
((
sblock
[
i
][
SEPS
]
!=
0
)
||
(
sblock
[
i
][
SA
]
!=
0
))
source
[
i
].
E
.
b
=
source
[
i
].
E
.
a
*
(
1
.
-
source
[
i
].
eps
)
/
(
1
.
+
source
[
i
].
eps
);
if
((
sblock
[
i
][
SEPS2
]
!=
0
)
||
(
sblock
[
i
][
SA2
]
!=
0
))
...
...
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