UNPKG

hyperformula

Version:

HyperFormula is a JavaScript engine for efficient processing of spreadsheet-like data and formulas

26 lines (25 loc) 961 B
/** * @license * Copyright (c) 2025 Handsoncode. All rights reserved. */ import { ProcedureAst } from '../../parser'; import { InterpreterState } from '../InterpreterState'; import { InterpreterValue } from '../InterpreterValue'; import { FunctionPlugin, FunctionPluginTypecheck, ImplementedFunctions } from './FunctionPlugin'; /** * Interpreter plugin containing MEDIAN function */ export declare class MedianPlugin extends FunctionPlugin implements FunctionPluginTypecheck<MedianPlugin> { static implementedFunctions: ImplementedFunctions; /** * Corresponds to MEDIAN(Number1, Number2, ...). * * Returns a median of given numbers. * * @param ast * @param state */ median(ast: ProcedureAst, state: InterpreterState): InterpreterValue; large(ast: ProcedureAst, state: InterpreterState): InterpreterValue; small(ast: ProcedureAst, state: InterpreterState): InterpreterValue; }