Home Reference Source
import EWMA from 'hls.js/src/utils/ewma.js'
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: *, value: *)

Public Constructors

public constructor() source

Public Members

public alpha_: * source

public estimate_: number source

public totalWeight_: number source

Public Methods

public getEstimate(): * source

Return:

*

public getTotalWeight(): * source

Return:

*

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

Params:

NameTypeAttributeDescription
weight *
value *