UNPKG

quantitivecalc

Version:

A TypeScript library providing advanced quantitative finance functions for risk analysis, performance metrics, and technical indicators. (Currently in development)

14 lines 805 B
/** * Finds the minimum and maximum values in a specified column for each key in a dictionary of lists. * * @template T - The type of objects contained in the lists. * @template K - The key of the column to find extremes for, must be a key of T. * @param dict - A dictionary where each key maps to an array of objects of type T. * @param columnName - The name of the column (property of T) to find the min and max values for. * @returns A dictionary mapping each key to an object containing the minimum and maximum values found in the specified column. */ export default function findExtremesInColumnPerKey<T, K extends keyof T>(dict: Record<string, T[]>, columnName: K): Record<string, { min: T | undefined; max: T | undefined; }>; //# sourceMappingURL=findExtremesInColumnPerKey.d.ts.map