new ThroughputController()
Methods
(inner) getAverageLatency(mediaType, calculationMode, sampleSize) → {number}
Returns the average latency based on the provided calculation mode
Parameters:
Name | Type | Default | Description |
---|---|---|---|
mediaType | string | ||
calculationMode | string | | null | |
sampleSize | number | |
Returns:
- Type:
- number
(inner) getAverageThroughput(mediaType, calculationMode, sampleSize) → {number}
Returns the average throughput based on the provided calculation mode. The returned value is depicted in kbit/s
Parameters:
Name | Type | Default | Description |
---|---|---|---|
mediaType | string | ||
calculationMode | string | | null | |
sampleSize | number | |
Returns:
- Type:
- number
(inner) getRawThroughputData(mediaType) → {*}
Returns the raw throughput measurements without calculating the average
Parameters:
Name | Type | Description |
---|---|---|
mediaType |
Returns:
- Type:
- *
(inner) getSafeAverageThroughput(mediaType, calculationMode, sampleSize) → {number}
Returns the average throughout applying the bandwidth safety factor provided in the settings. The returned value is depicted in kbit/s
Parameters:
Name | Type | Default | Description |
---|---|---|---|
mediaType | string | ||
calculationMode | string | | null | |
sampleSize | number | |
Returns:
- Type:
- number
(inner) getZlema(dict, sampleSize) → {number}
Calculates the Zero-Lag Exponential Moving Average
Parameters:
Name | Type | Description |
---|---|---|
dict | array | |
sampleSize | number |
Returns:
- Type:
- number