[Avida-SVN] r2993 - branches/matt/PairwiseEpistasis/source/analyze
ruppmatt at myxo.css.msu.edu
ruppmatt at myxo.css.msu.edu
Tue Dec 2 17:19:37 PST 2008
Author: ruppmatt
Date: 2008-12-02 20:19:37 -0500 (Tue, 02 Dec 2008)
New Revision: 2993
Modified:
branches/matt/PairwiseEpistasis/source/analyze/cAnalyze.cc
Log:
Added printouts for additional plasticity features in LandscapeBackground.
Modified: branches/matt/PairwiseEpistasis/source/analyze/cAnalyze.cc
===================================================================
--- branches/matt/PairwiseEpistasis/source/analyze/cAnalyze.cc 2008-12-02 20:45:56 UTC (rev 2992)
+++ branches/matt/PairwiseEpistasis/source/analyze/cAnalyze.cc 2008-12-03 01:19:37 UTC (rev 2993)
@@ -7087,7 +7087,7 @@
//Write our initial fitness to the top line
cPhenPlastGenotype pA(genotype_A->GetGenome(), num_trials, m_world, m_ctx);
cString Line;
- Line.Set("# %d %c %g %g %g %g %g \n",
+ Line.Set("# %d %c %g %g %g %g %g %g %g %g\n",
-1, '-', pA.GetAverageFitness(), pA.GetPhenotypicEntropy(),
pA.GetMinimumFitness(), pA.GetMinimumFitnessFrequency(),
pA.GetMaximumFitness(), pA.GetMaximumFitnessFrequency(),
@@ -7112,7 +7112,8 @@
// then supply a nan.
if (mut_site || cInstruction(c).GetSymbol() == old_genotype[k])
{
- Line.Set("%d %c %g %g", k, cInstruction(c).GetSymbol(), xnan, xnan);
+ Line.Set("%d %c %g %g %g %g %g %g %g %g", k, cInstruction(c).GetSymbol(),
+ xnan, xnan, xnan, xnan, xnan, xnan, xnan, xnan);
df.WriteAnonymous(Line);
df.Endl();
continue;
@@ -7120,7 +7121,12 @@
new_genotype = old_genotype;
new_genotype[k] = cInstruction(c).GetSymbol();
cPhenPlastGenotype pp(new_genotype, num_trials, m_world, m_ctx);
- Line.Set("%d %c %g %g", k, cInstruction(c).GetSymbol(), pp.GetAverageFitness(), pp.GetPhenotypicEntropy());
+ Line.Set("%d %c %g %g %g %g %g %g %g", k, cInstruction(c).GetSymbol(),
+ pp.GetAverageFitness(), pp.GetPhenotypicEntropy(),
+ pp.GetMinimumFitness(), pp.GetMinimumFitnessFrequency(),
+ pp.GetMaximumFitness(), pp.GetMaximumFitnessFrequency(),
+ pp.GetLikelyFitness(), pp.GetMaximumFrequency());
+
df.WriteAnonymous(Line);
df.Endl();
More information about the Avida-cvs
mailing list