C# Class concord.Output.Dto.RunHistoryStats

Exibir arquivo Open project: uShip/Concord Class Usage Examples

Public Methods

Method Description
AddDatapoint ( System.TimeSpan runLength, bool isSuccess ) : void
CopyHistoryStatsFrom ( RunHistoryStats history ) : void

Private Methods

Method Description
SetAverageTime ( System.TimeSpan runLength, int successDatapoints ) : void

Average, averaged over at max 100 datapoints

SetFailedAverage ( System.TimeSpan runLength ) : void
SetWeightedAverageTime ( System.TimeSpan runLength, int successDatapoints ) : void

Average, averaged over at max 5 datapoints

SetWeightedAverageTime_Squaring_Fail ( System.TimeSpan runLength, int successDatapoints ) : void

This is confusing to debug, so striking it for the simplier method above

Method Details

AddDatapoint() public method

public AddDatapoint ( System.TimeSpan runLength, bool isSuccess ) : void
runLength System.TimeSpan
isSuccess bool
return void

CopyHistoryStatsFrom() public method

public CopyHistoryStatsFrom ( RunHistoryStats history ) : void
history RunHistoryStats
return void