本文整理汇总了C++中Sample::GetParameters方法的典型用法代码示例。如果您正苦于以下问题:C++ Sample::GetParameters方法的具体用法?C++ Sample::GetParameters怎么用?C++ Sample::GetParameters使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sample
的用法示例。
在下文中一共展示了Sample::GetParameters方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
BipartitionList bplist(name,burnin,every,until);
if (!bplist.Ntree) {
cerr << "empty tree list\n";
exit(1);
}
ofstream bplist_os((SampleName + ".bplist").c_str());
bplist.WriteToStream(bplist_os);
bplist_os.close();
cout << bplist.Ntree << " trees were read\n";
cout.flush();
Consensus* cons = new Consensus(&bplist,cutoff);
ofstream cons_os((SampleName + ".con.tre").c_str());
// cons->Trichotomise();
cons->Phylip(cons_os, 1, 1, 1, 0);
cons_os.close();
cerr << '\n';
cerr << "bipartition list in\t" << SampleName << ".bplist\n";
cerr << "consensus in\t\t" << SampleName << ".con.tre\n";
if (ps) {
cons->ToPS((string) (SampleName + ".con.tre"),12,20,1,1,1,0);
cerr << "postscript in\t\t" << SampleName << ".con.tre.ps\n";
}
cerr << '\n';
if ((! mParam2) || (!mParam2->SaveAll)) {
exit(1);
}
}
// delete mParam2;
Sample* sample = new Sample(ChainName,burnin,every,until,Path);
if (save) {
sample->ToFile(SampleName);
}
MCParameters* mParam = sample->GetParameters();
// initialising
int Nsite = mParam->Nsite;
int Ntaxa = mParam->Ntaxa;
cout << '\n';
cout << "Nsite : " << Nsite << '\n';
cout << "Ntaxa : " << Ntaxa << '\n';
cout << sample->GetSize() << " points to read\n";
cout << '\n';
cout.flush();
if (mParam->NormalApprox) {
if (clustermodes) {
cerr << "no mode clustering under normal approx\n";
cerr << '\n';
exit(1);
}
if (modes) {
cerr << "no mode analysis under normal approx\n";
cerr << '\n';
exit(1);
}
if (rates) {
cerr << "no rate analysis under normal approx\n";
cerr << '\n';
exit(1);
}
if (sitestat) {
cerr << "no site-specific profile analysis under normal approx\n";
cerr << '\n';