ot::SuccessRateTracker::AddSample() method
Adds a sample (success or failure) to `SuccessRateTracker`.
Arguments
aSuccess
The sample status be added, `true` for success, `false` for failure.
aWeight
The weight coefficient used for adding the new sample into average.