UNPKG

@railpath/finance-toolkit

Version:

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

28 lines (27 loc) 949 B
import { z } from 'zod'; /** * Zod schema for Baum-Welch training algorithm options */ export declare const BaumWelchOptionsSchema: z.ZodObject<{ maxIterations: z.ZodNumber; convergenceTolerance: z.ZodNumber; initialModel: z.ZodOptional<z.ZodObject<{ numStates: z.ZodNumber; numFeatures: z.ZodNumber; transitionMatrix: z.ZodArray<z.ZodArray<z.ZodNumber>>; emissionParams: z.ZodArray<z.ZodObject<{ means: z.ZodArray<z.ZodNumber>; variances: z.ZodArray<z.ZodNumber>; }, z.core.$strip>>; initialProbs: z.ZodArray<z.ZodNumber>; logLikelihood: z.ZodOptional<z.ZodNumber>; }, z.core.$strip>>; }, z.core.$strip>; /** * TypeScript types derived from Zod schemas */ export type BaumWelchOptions = z.infer<typeof BaumWelchOptionsSchema>; /** * Validated type after parsing */ export type BaumWelchOptionsValidated = z.output<typeof BaumWelchOptionsSchema>;