feat: add version flag, fix --float parsing, and optimize distributions

This commit is contained in:
2026-06-12 15:39:46 +08:00
parent 68597c0c24
commit 3cecb23ea1
6 changed files with 136 additions and 75 deletions
+6 -10
View File
@@ -1,19 +1,15 @@
export type Dist =
| "uniform"
| "normal"
| "binomial"
| "poisson"
| "exponential"
| "hypergeometric";
export const DISTS: Dist[] = [
export const DISTS = [
"uniform",
"normal",
"binomial",
"poisson",
"exponential",
"hypergeometric",
];
] as const;
export type Dist = (typeof DISTS)[number];
export const VERSION = "1.0.0";
export interface Options {
dist: Dist;