better plan stats
This commit is contained in:
@@ -14,10 +14,11 @@ namespace EscapeRoomEngine.Engine.Runtime.Measurements
|
||||
[PrimaryKey]
|
||||
public ObjectId ID { get; set; }
|
||||
public float Time { get; set; }
|
||||
public IList<float> Percentiles { get; }
|
||||
public IList<PlanResult> PlanResults { get; }
|
||||
public IList<Puzzle> PuzzlesSolved { get; }
|
||||
|
||||
public float MeanPercentile => Percentiles.Count == 0 ? .5f : Probability.Mean(Percentiles.ToArray());
|
||||
public IEnumerable<float> Percentiles => PlanResults.Select(result => result.SectionPercentile);
|
||||
public float MeanPercentile => PlanResults.Count == 0 ? .5f : Probability.Mean(Percentiles.ToArray());
|
||||
|
||||
[UsedImplicitly]
|
||||
public Session()
|
||||
|
||||
Reference in New Issue
Block a user