Bayesian Analysis of Neutron Star Mass and Radius Observations
Public Member Functions | Protected Member Functions | Protected Attributes
bamr::process Class Reference

Processing MCMC data from bamr. More...

Detailed Description

Definition at line 63 of file process.h.

#include <process.h>

Public Member Functions

 process ()
 Create the process object.
 
void run (int argc, char *argv[])
 Main public interface.
 

Protected Member Functions

virtual void setup_cli ()
 Desc.
 
Commands
int auto_corr (std::vector< std::string > &sv, bool itive_com)
 Create a table of autocorrelation data from a specified column.
 
int xlimits (std::vector< std::string > &sv, bool itive_com)
 Set limits for the x-axis.
 
int ylimits (std::vector< std::string > &sv, bool itive_com)
 Set limits for the y-axis.
 
int hist (std::vector< std::string > &sv, bool itive_com)
 Create a histogram from a specified column. More...
 
int hist2 (std::vector< std::string > &sv, bool itive_com)
 Create a two-dimensional histogram from two user-specified columns.
 
int hist_set (std::vector< std::string > &sv, bool itive_com)
 Create a set of histograms from a set of columns in the bamr MCMC output.
 
int combine (std::vector< std::string > &sv, bool itive_com)
 Combine several bamr output files.
 
int contours (std::vector< std::string > &sv, bool itive_com)
 Specify which contour levels to use.
 

Protected Attributes

o2scl::cli::parameter_double p_xscale
 
o2scl::cli::parameter_double p_yscale
 
o2scl::cli::parameter_bool p_errors
 
o2scl::cli::parameter_bool p_logx
 
o2scl::cli::parameter_bool p_logy
 
o2scl::cli::parameter_bool p_logz
 
o2scl::cli::parameter_int p_hist_size
 
o2scl::cli::parameter_int p_n_blocks
 
o2scl::cli::parameter_int p_line_start
 
o2scl::cli::parameter_int p_verbose
 
o2scl::cli::parameter_string p_constraint
 
o2scl::cli cl
 
Command-line parameters
int verbose
 Verbosity (default 1)
 
int line_start
 Ignore all lines before start.
 
double xscale
 Scale for x-axis.
 
double yscale
 Scale for y-axis.
 
bool logx
 If true, use a logarithmic x scale.
 
bool logy
 If true, use a logarithmic y scale.
 
bool logz
 If true, use a logarithmic z scale.
 
bool errors
 If true, plot errors in 1d.
 
int hist_size_int
 Histogram size.
 
int n_blocks
 Number of blocks.
 
Axis limits from 'xlimits' and 'ylimits'
bool xset
 If true, x limits are set.
 
double user_xlow
 Lower x value.
 
double user_xhigh
 Upper x value.
 
bool yset
 If true, y limits are set.
 
double user_ylow
 Lower y value.
 
double user_yhigh
 Upper y value.
 
Const confidence limits
const double one_sigma
 The one-sigma limit of a normal distribution, 0.6827.
 
const double two_sigma
 The two-sigma limit of a normal distribution, 0.9545.
 
const double three_sigma
 The three-sigma limit of a normal distribution, 0.9973.
 
Other class member data
std::string constraint
 Constraint to apply to the data.
 
std::vector< double > cont_levels
 Contour levels set in 'contours'.
 
o2scl::format_float ff
 Formatter for floating point numbers.
 

Member Function Documentation

int bamr::process::hist ( std::vector< std::string > &  sv,
bool  itive_com 
)
protected
Idea for Future:
This function isn't that efficient. It first reads all of the data into one long vector and then reparses the long vector into a set of o2scl::expval_scalar objects. The averages and errors for the o2scl::expval_scalar objects are stored into a table, and the table is written to the output file. This could be improved.

The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Bamr documentation is under the GNU Free Documentation License.