@highcharts/dashboards
Version:
Highcharts Dashboards framework
42 lines (41 loc) • 1.13 kB
TypeScript
import type { Arguments } from '../FormulaTypes';
import type DataTable from '../../DataTable';
/**
* Processor for the `MODE.MULT(...values)` implementation. Calculates the most
* frequent values of the give values.
*
* @private
* @function Formula.processorFunctions.MULT
*
* @param {Highcharts.FormulaArguments} args
* Arguments to process.
*
* @param {Highcharts.DataTable} [table]
* Table to process.
*
* @return {number|Array<number>}
* Result value of the process.
*/
declare function MULT(args: Arguments, table?: DataTable): (number | Array<number>);
/**
* Processor for the `MODE.SNGL(...values)` implementation. Calculates the
* lowest most frequent value of the give values.
*
* @private
* @function Formula.processorFunctions['MODE.SNGL']
*
* @param {Highcharts.FormulaArguments} args
* Arguments to process.
*
* @param {Highcharts.DataTable} [table]
* Table to process.
*
* @return {number}
* Result value of the process.
*/
declare function SNGL(args: Arguments, table?: DataTable): number;
declare const MODE: {
MULT: typeof MULT;
SNGL: typeof SNGL;
};
export default MODE;