import ndarray from "ndarray"; export interface BinConfig { /** * The start of the range. */ start: number; /** * The end of the range. */ stop: number; /** * The size of bin steps. */ step: number; } export interface Result { /** * Start of the time bin. */ x: number; /** * Start fo teh value bin. */ y: number; /** * Computed density. */ value: number; } /** * Compute a density heatmap. * @param data The time series data as an ndarray. * @param binX Configuration for the binning along the time dimension. * @param binY Configuration for the binning along the value dimension. * @param canvas The canvas for the webgl context and for debug output. */ export default function (data: ndarray, binX: BinConfig, binY: BinConfig, canvas?: HTMLCanvasElement): Promise;