|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Aleph::CA metric helpers (Phase 7).
More...
#include <cmath>#include <cstdint>#include <vector>#include <gtest/gtest.h>#include <ca-metrics.H>#include <ca-traits.H>#include <tpl_ca_concepts.H>#include <tpl_ca_graph_automaton.H>#include <tpl_ca_lattice.H>#include <tpl_ca_storage.H>Go to the source code of this file.
Functions | |
| TEST (CAMetrics, CountStateAndCountAliveAreConsistent) | |
| TEST (CAMetrics, DensityIsZeroOnEmptyLattice) | |
| TEST (CAMetrics, DensityMatchesCountOverTotal) | |
| TEST (CAMetrics, StateHistogramSumsToTotal) | |
| TEST (CAMetrics, ShannonEntropyZeroForUniformLattice) | |
| TEST (CAMetrics, ShannonEntropyForBalancedBinaryReachesLn2) | |
| TEST (CAMetrics, FrameHashEqualForEqualFrames) | |
| TEST (CAMetrics, FrameHashDiffersForDifferentFrames) | |
| TEST (CAMetrics, FrameHashStableAcrossLatticeReconstruction) | |
| TEST (CAMetrics, CellDiffCountMatchesActivity) | |
| TEST (CAMetrics, ForEachCellWalksRank1And3LatticesToo) | |
| TEST (CAMetrics, MetricsWorkOnGraphLattice) | |
Tests for Aleph::CA metric helpers (Phase 7).
Scope:
Definition in file ca_metrics_test.cc.
| TEST | ( | CAMetrics | , |
| CellDiffCountMatchesActivity | |||
| ) |
Definition at line 167 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::cell_diff_count().
| TEST | ( | CAMetrics | , |
| CountStateAndCountAliveAreConsistent | |||
| ) |
Definition at line 69 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::count_alive(), and Aleph::CA::count_state().
| TEST | ( | CAMetrics | , |
| DensityIsZeroOnEmptyLattice | |||
| ) |
Definition at line 85 of file ca_metrics_test.cc.
References Aleph::CA::alive_density(), Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::density().
| TEST | ( | CAMetrics | , |
| DensityMatchesCountOverTotal | |||
| ) |
Definition at line 92 of file ca_metrics_test.cc.
References Aleph::CA::alive_density(), Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::density().
| TEST | ( | CAMetrics | , |
| ForEachCellWalksRank1And3LatticesToo | |||
| ) |
Definition at line 185 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::for_each_cell().
| TEST | ( | CAMetrics | , |
| FrameHashDiffersForDifferentFrames | |||
| ) |
Definition at line 143 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::frame_hash(), and Aleph::CA::frames_equal().
| TEST | ( | CAMetrics | , |
| FrameHashEqualForEqualFrames | |||
| ) |
Definition at line 131 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::frame_hash(), and Aleph::CA::frames_equal().
| TEST | ( | CAMetrics | , |
| FrameHashStableAcrossLatticeReconstruction | |||
| ) |
Definition at line 153 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::frame_hash().
| TEST | ( | CAMetrics | , |
| MetricsWorkOnGraphLattice | |||
| ) |
Definition at line 200 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::cell_diff_count(), Aleph::CA::count_alive(), Aleph::CA::count_state(), Aleph::CA::density(), Aleph::CA::frame_hash(), Aleph::CA::frames_equal(), Aleph::CA::make_path_graph_adjacency(), and Aleph::CA::Graph_Lattice< T >::set_node().
| TEST | ( | CAMetrics | , |
| ShannonEntropyForBalancedBinaryReachesLn2 | |||
| ) |
Definition at line 121 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::shannon_entropy().
| TEST | ( | CAMetrics | , |
| ShannonEntropyZeroForUniformLattice | |||
| ) |
Definition at line 115 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and Aleph::CA::shannon_entropy().
| TEST | ( | CAMetrics | , |
| StateHistogramSumsToTotal | |||
| ) |
Definition at line 102 of file ca_metrics_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), h, and Aleph::CA::state_histogram().