@railpath/finance-toolkit
Version:
Production-ready finance library for portfolio construction, risk analytics, quantitative metrics, and ML-based regime detection
12 lines (11 loc) • 348 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ViterbiResultSchema = void 0;
const zod_1 = require("zod");
/**
* Zod schema for Viterbi algorithm result
*/
exports.ViterbiResultSchema = zod_1.z.object({
path: zod_1.z.array(zod_1.z.number().int().nonnegative()),
logProbability: zod_1.z.number(),
});