MCPcopy Create free account
hub / github.com/chrxh/alien / processTimelineStatistics

Method processTimelineStatistics

source/Gui/StatisticsWindow.cpp:297–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void StatisticsWindow::processTimelineStatistics()
298{
299 ImGui::Spacing();
300 AlienImGui::Group("Time step data");
301 ImGui::PushID(1);
302 int row = 0;
303 if (ImGui::BeginTable("##", 2, ImGuiTableFlags_BordersInnerH, ImVec2(-1, 0))) {
304 ImGui::TableSetupColumn("##");
305 ImGui::TableSetupColumn("##", ImGuiTableColumnFlags_WidthFixed, scale(RightColumnWidthTimeline));
306
307 ImPlot::PushColormap(ImPlotColormap_Cool);
308
309 ImGui::TableNextRow();
310 ImGui::TableSetColumnIndex(0);
311 processPlot(row++, &DataPointCollection::numCells);
312 ImGui::TableSetColumnIndex(1);
313 AlienImGui::Text("Cells");
314
315 ImGui::TableNextRow();
316 ImGui::TableSetColumnIndex(0);
317 processPlot(row++, &DataPointCollection::numParticles);
318 ImGui::TableSetColumnIndex(1);
319 AlienImGui::Text("Energy particles");
320
321 ImGui::TableNextRow();
322 ImGui::TableSetColumnIndex(0);
323 processPlot(row++, &DataPointCollection::totalEnergy);
324 ImGui::TableSetColumnIndex(1);
325 AlienImGui::Text("Contained energy");
326
327 ImGui::TableNextRow();
328 ImGui::TableSetColumnIndex(0);
329 processPlot(row++, &DataPointCollection::numSelfReplicators);
330 ImGui::TableSetColumnIndex(1);
331 AlienImGui::Text("Self-replicators");
332
333 ImGui::TableNextRow();
334 ImGui::TableSetColumnIndex(0);
335 processPlot(row++, &DataPointCollection::numColonies);
336 ImGui::TableSetColumnIndex(1);
337 AlienImGui::Text("Diversity");
338 ImGui::SameLine();
339 AlienImGui::HelpMarker("The number of colonies is displayed. A colony is a set of at least 20 same mutants.");
340
341 ImGui::TableNextRow();
342 ImGui::TableSetColumnIndex(0);
343 processPlot(row++, &DataPointCollection::averageGenomeCells, 2);
344 ImGui::TableSetColumnIndex(1);
345 AlienImGui::Text("Num genotype\ncells average");
346 ImGui::SameLine();
347 AlienImGui::HelpMarker("The average number of encoded cells in the genomes is displayed.");
348
349 ImGui::TableNextRow();
350 ImGui::TableSetColumnIndex(0);
351 processPlot(row++, &DataPointCollection::averageGenomeComplexity, 2);
352 ImGui::TableSetColumnIndex(1);
353 AlienImGui::Text("Genome complexity\naverage");
354

Callers

nothing calls this directly

Calls 2

ImVec2Class · 0.85
scaleFunction · 0.85

Tested by

no test coverage detected