reweight
The software in this page is used to transform the parameter vector in a posterior simulator file, and/or modify the weights associated with each iteration. A description of the methodology can be found in the BACC manual.
In the fortran, c, and matlab versions there is a standard input file with input records as follows:
- Old posterior simulator file
- New posterior simulator file
Languages
C routines
To run the program:
- Edit the control file (i.e., mlin) as specified above
- Edit the file client.c
- Compile and link
- enter the command mlike < CONTROL-FILE
Files needed to create executable:
Library Files needed to obtain executables:
- lapack
- blas
- tmglib
- libF77
- libI77
Fortran Routines
To run the program:
- Edit the control file described above
- Edit the file client.f
- Compile and link
- Enter the command reweight < CONTROL-FILE
Files needed to obtain the executable:
Libraries needed:
This routine uses IMSL. The user needs to link to IMSL or to the libraries described in LIBRARIES to generate executable.
Gauss
To run the program:
- Edit the top portion of reweight
- Edit the file client.g
- Enter the command gauss -b reweight
Files needed:
Mathematica
To run the program:
- Edit the top portion of reweight.m
- Edit the file client.m
- Enter the command math < reweight.m
Files needed to obtain the executable:
Matlab
To run the program:
- Edit the top portion of reweight.m
- Edit the file client.m
- Enter the command matlab < reweight.m
Files needed to obtain the executable:
SPlus
To run the program:
- Edit the top portion of reweight( including the function client)
- Enter the command splus BATCH reweight out
Files needed to obtain the executable:
Samples
These files are sample input an doutput files for reweight.
- sim(simulator file to be reweighted)
- simnew(reweighted simulator file )
- rwin(sample input file)
- rwout(sample output file)