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
Gitlab is now running v13.9.0 - More info ->
here
<-
Open sidebar
cosmotools
CAMEL
Commits
a9ad2912
Commit
a9ad2912
authored
Jul 02, 2019
by
Plaszczynski Stephane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put back Marta's parameter for scale
parent
67aa4d84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
src/camel/MCMC/exec/mainMCMC.cc
src/camel/MCMC/exec/mainMCMC.cc
+1
-7
work/ref/hlpTT_PS_H0.cml
work/ref/hlpTT_PS_H0.cml
+12
-3
No files found.
src/camel/MCMC/exec/mainMCMC.cc
View file @
a9ad2912
...
...
@@ -70,7 +70,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"
,
-
1
);
double
scale
=
parser
.
params
.
find
<
double
>
(
"scale"
,
0.00
1
);
const
bool
do_move
=
parser
.
params
.
find
<
bool
>
(
"do_move"
,
false
);
bool
verbose
=
parser
.
params
.
find
<
bool
>
(
"verbose"
,
false
);
...
...
@@ -89,12 +89,6 @@ int main(int argc, char *argv[])
const
int
dim
=
lkh
->
Get_par_num
();
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
<<
"defining scale factor as "
<<
scale
<<
endl
;
}
//--------defining seeds-----------------------------------------------
unsigned
int
seed
(
0
);
if
(
parser
.
params
.
param_present
(
"seed"
)){
...
...
work/ref/hlpTT_PS_H0.cml
View file @
a9ad2912
...
...
@@ -71,10 +71,8 @@ class sBBN\ file bbn/sBBN_2017_marcucci.dat
precisionFile=class_pre/hpjul3.pre
###############################################################
# minimization
###############################################################
#fitter
nitermax=50000
set_stra=2
set_tol=0.00001
...
...
@@ -83,3 +81,14 @@ set_tol=0.00001
remove_cosmo_limits=false
doHesse=true
###############################################################
#MCMC
#1st samples are drawn up to t0 from given proposal (scaled by scale)
#if your matrix is nice scale_th~2.4**2/ndim otherwise low (default=0.001)
#t0=2000
#scale=0.3
#then cov is adapted up to ts with scale_th. If your matrix is nice do
# not destroy things there.
#ts=0
#then scale will auto-adapt to reach ar~0.25
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