29 int main(
int argc,
char *argv[]) {
34 std::vector<std::string> MCMCFile;
39 MACH3LOG_ERROR(
"./RHat NThin MCMCchain_1.root MCMCchain_2.root MCMCchain_3.root ... [how many you like]");
43 int NThin = atoi(argv[1]);
46 for (
int i = 2; i < argc; i++)
48 MCMCFile.push_back(std::string(argv[i]));
55 MACH3LOG_WARN(
"Gelman is going to be sad :(. He suggested you should use more than one chain (at least 4). Code works fine for one chain, however, estimator might be biased.");
56 MACH3LOG_WARN(
"Multiple chains are more likely to reveal multimodality and poor adaptation or mixing:");
59 auto RHatCalc = std::make_unique<RHatCalculator>(
false, MCMCFile, NThin);
60 RHatCalc->RunDiagnostic();
void SetMaCh3LoggerFormat()
Set messaging format of the logger.
int main(int argc, char *argv[])
Custom exception class used throughout MaCh3.
void MaCh3Welcome()
KS: Prints welcome message with MaCh3 logo.