* When \< 2 samples have been collected, returns 0 * Otherwise computes the minimum value samples contained in the buffer
()
| 728 | * Otherwise computes the minimum value samples contained in the buffer |
| 729 | */ |
| 730 | min(): number { |
| 731 | if (this.length < 2) return 0; |
| 732 | let min = this.rttSamples[0]; |
| 733 | for (let i = 1; i < this.length; i++) { |
| 734 | if (this.rttSamples[i] < min) min = this.rttSamples[i]; |
| 735 | } |
| 736 | |
| 737 | return min; |
| 738 | } |
| 739 | |
| 740 | /** |
| 741 | * Returns mean of samples contained in the buffer |
no outgoing calls
no test coverage detected