Commit Graph

3 Commits

Author SHA1 Message Date
caoqianming fd2dfbdfb8 Add analysis judgment, history storage, and report/Excel export
Calculation (calculator/domain):
- Material types (main body / hollow / decorative) with tiered limits
- Validity judgment (37 Bq/kg exemption + Ur(IRa) k=2 threshold)
- Critical-value verdict via true-value interval vs limit (pass/fail/
  need-more), decorative A/B/C cascade
- GUM expanded uncertainty U and analytical interval P2.5/P97.5
- Single-measurement support (n=1, uA=0); fix Type-A term to include a

Persistence & export (src-tauri):
- SQLite history via rusqlite (save/list/get/delete, filtered list)
- Excel export via rust_xlsxwriter with native Save-As dialog
- Report view (A4) with print-to-PDF

UI:
- Tabs (calculate / history), save-to-history, report preview
- Logo-matched navy + gold theme, widened layout, density polish

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 15:55:55 +08:00
caoqianming 0c06d51c4a Add Monte Carlo (MCM) acceptance evaluation
Add a 10000-iteration Monte Carlo simulation on top of the existing
GUM uncertainty path. For IRa and Ir it reports the simulated mean,
standard deviation, P2.5/P97.5 (95% coverage interval), and pass/fail
probability against configurable standard values (default IRa/Ir <= 1.0).

- src/mcm.rs: dependency-free SplitMix64 PRNG + Box-Muller normals,
  deterministic seed for reproducible results
- domain: AcceptanceLimits, McmResult, McmIndexStats; wire into
  SampleInput/CalculationResult
- UI: compact calibration table, standard-value inputs, side-by-side
  GUM/MCM result cards, and a placeholder before calculation
- run.md: run and packaging instructions

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 15:14:27 +08:00
caoqianming 5cae20cd58 Initial commit 2026-05-15 13:50:27 +08:00