quantitivecalc
Version:
A TypeScript library providing advanced quantitative finance functions for risk analysis, performance metrics, and technical indicators. (Currently in development)
38 lines (37 loc) • 1.94 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.listUtils = void 0;
const analyzeColumnWithRange_1 = __importDefault(require("./analyzeColumnWithRange"));
const filterByRange_1 = __importDefault(require("./filterByRange"));
const findExtremesInColumn_1 = __importDefault(require("./findExtremesInColumn"));
const getFirstRow_1 = __importDefault(require("./getFirstRow"));
const getLastRow_1 = __importDefault(require("./getLastRow"));
const setFirstItemToValue_1 = __importDefault(require("./setFirstItemToValue"));
const sortByColumn_1 = __importDefault(require("./sortByColumn"));
/**
* A collection of utility functions for manipulating and analyzing lists.
*
* @remarks
* The `listUtils` object provides methods for filtering, sorting, and extracting data from lists,
* particularly useful for operations on tabular data structures.
*
* @property filterByRange - Filters list items based on a specified range.
* @property findExtremesInColumn - Finds the minimum and maximum values in a specified column.
* @property getFirstRow - Retrieves the first row from a list.
* @property getLastRow - Retrieves the last row from a list.
* @property setFirstItemProperty - Sets a property on the first item in a list.
* @property sortByColumn - Sorts the list by a specified column.
* @property analyzeColumnWithRange - Analyzes a column and returns statistics within a specified range.
*/
exports.listUtils = {
filterByRange: filterByRange_1.default,
findExtremesInColumn: findExtremesInColumn_1.default,
getFirstRow: getFirstRow_1.default,
getLastRow: getLastRow_1.default,
setFirstItemProperty: setFirstItemToValue_1.default,
sortByColumn: sortByColumn_1.default,
analyzeColumnWithRange: analyzeColumnWithRange_1.default,
};