Repository navigation
v1.4.0 - Major bug fixes, HEMG double-tail support, and code refactoring
π Bug Fixes (10 items)
- Fix
LoadMeanFromFileusing wrong path β now usesGetDailyOutputDirectory() - Fix
ApplyThresholdingusing RMS instead of mean-centered std dev - Fix
ProcessDatanot checkingSelectedModefor file-based mean loading - Fix histogram range hardcoded to 0-16383 even after baseline subtraction
- Fix nullable warnings (CS8618/CS8622) on
RequestPlotUpdateand_cts - Fix HEMG erfc formula errors in both left and right tails β
(Ο/Ο β Ξx/Ο) / β2 - Fix HEMG tau parameters not scaled to sigma units (caused exp overflow)
- Fix HEMG fitCurve length mismatch with caller's binCenters
- Fix
ChannelViewModelstats annotation using wrong coordinate system - Fix FitCurve/BinCenters length guard missing
β¨ New Features
- Hyper-EMG double tail β added as 3rd fit method option (Gaussian / Single / Double)
- Adaptive gradient descent β new optimizer with line search + central difference
- Fit window Β±5Ο β fit only bins near peak for better speed & stability
β»οΈ Refactoring
- Extract 5 shared helpers:
GetLayerSelector,ExtractChannelData,ApplyBaselineSubtraction,BuildHistogram,CalculateMean - Remove duplicated code: layerSelector (4β1), baseline (2β1), histogram (2β1)
- Remove unused
AccordFittingService.cs+Accord.Math/Accord.StatisticsNuGet packages - Remove dead code:
InterpolateFitCurve,PerformFit,createMarkerShape - Remove empty folders:
Infrastructure/,Presentation/ RefreshChannelPlots()reduced from ~70 β ~25 linesProcessDataParallel.For body reduced from ~70 β ~25 lines- Net -38 lines (324 added, 362 removed)
π Build
β 0 errors, 0 warnings