Class: ArithmeticMeanEstimator
Defined in: ArithmeticMeanEstimator.ts:11
Arithmetic Mean throughput estimator
Implements
Constructors
Constructor
ts
new ArithmeticMeanEstimator(): ArithmeticMeanEstimator;Returns
ArithmeticMeanEstimator
Methods
getEstimate()
ts
getEstimate(): number;Defined in: ArithmeticMeanEstimator.ts:22
Returns the current estimate of the throughput (in bits per second)
Returns
number
The current estimate of the throughput
Implementation of
ThroughputEstimator.getEstimate
sample()
ts
sample(sample): void;Defined in: ArithmeticMeanEstimator.ts:14
Adds a sample to the throughput estimator. The estimator ignores a sample with an encodedBodySize or a duration at or below 0, NaN, or Infinity.
Parameters
sample
The timing sample to add
Returns
void
Implementation of
ThroughputEstimator.sample