UNPKG

@railpath/finance-toolkit

Version:

Production-ready finance library for portfolio construction, risk analytics, quantitative metrics, and ML-based regime detection

12 lines (11 loc) 460 B
/** * Calculate improved initial guess for IRR calculation * * Uses a simple approximation based on total cash flows to provide * a better starting point than a fixed value, which can improve * convergence speed and stability. * * @param cashFlows - Array of cash flows (positive for inflows, negative for outflows) * @returns Initial guess for discount rate (as decimal) */ export declare function calculateInitialGuess(cashFlows: number[]): number;