Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
cosmotools
CAMEL
Commits
39432dca
Commit
39432dca
authored
Jun 25, 2019
by
Plaszczynski Stephane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use 2.38^2/dim as default for scale
parent
32c7dfca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/camel/MCMC/exec/mainMCMC.cc
src/camel/MCMC/exec/mainMCMC.cc
+7
-2
No files found.
src/camel/MCMC/exec/mainMCMC.cc
View file @
39432dca
...
...
@@ -50,7 +50,7 @@ int main(int argc, char *argv[])
}
string
ar_file
=
string
(
"ar_vs_length_"
)
+
fileName
;
string
scale_file
=
string
(
"scale_"
)
+
fileName
;
string
cor_file
=
string
(
"
prop_cov
_"
)
+
fileName
;
string
cor_file
=
string
(
"
last_step
_"
)
+
fileName
;
cout
<<
"output files:"
<<
endl
;
cout
<<
ar_file
<<
" "
<<
scale_file
<<
" "
<<
cor_file
<<
" "
<<
endl
;
...
...
@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
const
string
proposal_cov
=
parser
.
params
.
find
<
string
>
(
"proposal_cov"
,
""
);
const
int
t0
=
parser
.
params
.
find
<
int
>
(
"t0"
,
2000
);
const
int
ts
=
parser
.
params
.
find
<
int
>
(
"ts"
,
10000
);
double
scale
=
parser
.
params
.
find
<
double
>
(
"scale"
,
0.00
1
);
double
scale
=
parser
.
params
.
find
<
double
>
(
"scale"
,
-
1
);
const
bool
do_move
=
parser
.
params
.
find
<
bool
>
(
"do_move"
,
false
);
bool
verbose
=
parser
.
params
.
find
<
bool
>
(
"verbose"
,
false
);
...
...
@@ -83,6 +83,11 @@ int main(int argc, char *argv[])
cout
<<
"dim="
<<
dim
<<
endl
;
//SP 25/06/19: compute scale if undefined depending on dim
if
(
scale
<
0
)
{
scale
=
2.38
*
2.38
/
dim
;
cout
<<
"refining scale to "
<<
scale
<<
endl
;
}
//--------defining seeds-----------------------------------------------
unsigned
int
seed
(
0
);
if
(
parser
.
params
.
param_present
(
"seed"
)){
...
...
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