UNPKG

@railpath/finance-toolkit

Version:

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

29 lines (28 loc) 983 B
import { z } from 'zod'; /** * Zod schema for HMM training options */ export declare const TrainHMMOptionsSchema: z.ZodObject<{ numStates: z.ZodNumber; maxIterations: z.ZodDefault<z.ZodNumber>; convergenceTolerance: z.ZodDefault<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 TrainHMMOptions = z.infer<typeof TrainHMMOptionsSchema>; /** * Validated type after parsing */ export type TrainHMMOptionsValidated = z.output<typeof TrainHMMOptionsSchema>;