Home Reference Source
import EWMA from 'hls.js/src/utils/ewma.ts'
public class | source

EWMA

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

alpha_: *

public
public

Method Summary

Public Methods
public
public
public

sample(weight: number, value: number)

Public Constructors

public constructor() source

Public Members

public alpha_: * source

public estimate_: number source

public totalWeight_: number source

Public Methods

public getEstimate(): number source

Return:

number

public getTotalWeight(): number source

Return:

number

public sample(weight: number, value: number) source

Params:

NameTypeAttributeDescription
weight number
value number