本文整理汇总了C++中Experiment::processIndividualPostHoc方法的典型用法代码示例。如果您正苦于以下问题:C++ Experiment::processIndividualPostHoc方法的具体用法?C++ Experiment::processIndividualPostHoc怎么用?C++ Experiment::processIndividualPostHoc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Experiment
的用法示例。
在下文中一共展示了Experiment::processIndividualPostHoc方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: analyzeIndividual
void MainFrame::analyzeIndividual( wxCommandEvent& event )
{
int generation = generationSpinner->GetValue();
int individual = individualSpinner->GetValue();
string title;
title +=
populationFileName +
string("_") +
string("Generation: ") +
toString(generation) +
string(" Individual: ") +
toString(individual);
mutex *populationMutex = experimentRun.getPopulationMutex();
{
mutex::scoped_lock scoped_lock(*populationMutex);
Experiment *experiment = experimentRun.getExperiment()->clone();
shared_ptr<NEAT::GeneticIndividual> indiv(
new NEAT::GeneticIndividual(
*(experimentRun.getIndividual(generation-1,individual-1).get())
)
);
experiment->processIndividualPostHoc(indiv);
if (indiv->getUserData().length())
{
cout_ << "PRINTING USER DATA RESULTS:\n";
cout_ << indiv->getUserData() << endl;
}
delete experiment;
}
}