Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add priors support #5

Open
cmontemuino opened this issue Sep 6, 2016 · 0 comments
Open

Add priors support #5

cmontemuino opened this issue Sep 6, 2016 · 0 comments
Labels
Milestone

Comments

@cmontemuino
Copy link
Owner

Priors is not currently supported by msparsm, meaning that tbs arguments cannot be used.

In original mspar, priors data is processed by means of a scanf on the input file in the main method:

for( i = 1; i<argc ; i++)
    if( strcmp( argv[i],"tbs") == 0 )  argv[i] = tbsparamstrs[ ntbs++] ;

count=0;

if( ntbs > 0 )  for( k=0; k<ntbs; k++)  scanf(" %s", tbsparamstrs[k] );

In msparsm we cannot do this kind of processing. All workers are receiving a number of samples to be generated, and we need to pass them tbs arguments needed to generate a specific sample.

What master process needs to do is reading one line from the priors file per each sample, and then change the way parameters are read from command line in getpars function. Argument's order (theta, rho, etc.) is not enforced by default, hence a mechanism to assign the proper value from prior's file to the tbs argument must be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant