tests.utils

Undocumented in source.

Members

Functions

evaluate
Stats* evaluate(T[n] nodes, double[n][n] matrix)

Evaluates the output of a simulation and a matrix of true latencies, returning the maximum and mean error between the simulated results and the truth.

simulate
void simulate(T[n] nodes, double[n][n] matrix, uint cycles)

Runs a number of cycles using the provided nodes and a matrix of true latencies among them.

Structs

Stats
struct Stats

Stats returned by evaluate().

Templates

matrix
template matrix(size_t n)

Generates and zero-fills an NxN matrix.

Meta