quantitivecalc
Version:
A TypeScript library providing advanced quantitative finance functions for risk analysis, performance metrics, and technical indicators. (Currently in development)
15 lines • 761 B
TypeScript
/**
* Finds the minimum and maximum values in a specified column across all lists in a dictionary.
*
* @template T - The type of objects contained in the lists.
* @template K - The key of the column to find extremes for.
* @param dict - A dictionary where each key maps to an array of objects of type T.
* @param columnName - The key of the column to evaluate for extremes.
* @returns An object containing the minimum (`min`) and maximum (`max`) values found in the specified column,
* or `undefined` if no values are present.
*/
export default function findExtremesInColumn<T, K extends keyof T>(dict: Record<string, T[]>, columnName: K): {
min: T | undefined;
max: T | undefined;
};
//# sourceMappingURL=findExtremesInColumn.d.ts.map