Skip to content

Class: HarmonicMeanEstimator ​

Defined in: HarmonicMeanEstimator.ts:11

Harmonic Mean throughput estimator

Implements ​

Constructors ​

Constructor ​

ts
new HarmonicMeanEstimator(): HarmonicMeanEstimator;

Returns ​

HarmonicMeanEstimator

Methods ​

getEstimate() ​

ts
getEstimate(): number;

Defined in: HarmonicMeanEstimator.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: HarmonicMeanEstimator.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 ​

ResourceTiming

The timing sample to add

Returns ​

void

Implementation of ​

ThroughputEstimator.sample

A Streaming Video Technology Alliance project.