@antv/g2
Version:
the Grammar of Graphics in Javascript
11 lines (10 loc) • 358 B
TypeScript
import { DataComponent as DC } from '../runtime';
import { EMADataTransform } from '../spec';
export declare function ema(values: number[], alpha: number): number[];
export type EMAOptions = Omit<EMADataTransform, 'type'>;
/**
* https://en.wikipedia.org/wiki/Exponential_smoothing
* @param options
* @returns
*/
export declare const EMA: DC<EMAOptions>;