Skip to content

SimulationStepResults

namespace Griff.Simulations;
public sealed class SimulationStepResults

One step of a simulation’s sweep (or its only step): every pair’s results.

public IReadOnlyList<string> FirstRows { get; }

The first side’s rows, in order (its label alone when it has no table).

public IReadOnlyList<SimulationPairResult> Pairs { get; }

Every pair: the first row against each second row, then the next first row.

public IReadOnlyList<string> SecondRows { get; }

The second side’s rows, in order.

public double? Value { get; }

The sweep’s column’s value at this step (a level), or null without a sweep.

public double Average(string measure)

measure over every pair, each weighed by its runs.

public double AverageAgainst(int second, string measure)

measure against the second side’s row at second, over the first side’s rows.

public double AverageOf(int first, string measure)

measure for the first side’s row at first, over the second side’s rows.

public SimulationPairResult Pair(int first, int second)

The pair of the first side’s row first and the second’s second, by place.

public SimulationPairResult? Pair(string first, string second)

The pair of the rows called first and second, or null.