Skip to content

feat: add asymmetric split gaussian shape#97

Open
lpatiny wants to merge 3 commits into
mainfrom
split-gaussian
Open

feat: add asymmetric split gaussian shape#97
lpatiny wants to merge 3 commits into
mainfrom
split-gaussian

Conversation

@lpatiny

@lpatiny lpatiny commented Jul 22, 2026

Copy link
Copy Markdown
Member

Adds SplitGaussian, an asymmetric peak made of two gaussian halves sharing the apex — the left half (x ≤ 0) uses fwhmLeft, the right half (x > 0) uses fwhmRight. Equal halves reduce to a plain Gaussian. Ships the analytical derivative, area/height helpers, getShape1D wiring, and tests.

lpatiny added 3 commits July 22, 2026 15:58
`SplitGaussian` models an asymmetric peak as two gaussian halves sharing the apex, each with its own width (`fwhmLeft` / `fwhmRight`). Includes the analytical derivative, area/height helpers, registry wiring (`getShape1D`), and tests.
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.75000% with 7 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@7ba02fd). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/shapes/1d/splitGaussian/SplitGaussian.ts 94.44% 6 Missing ⚠️
src/index.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #97   +/-   ##
=======================================
  Coverage        ?   96.09%           
=======================================
  Files           ?       24           
  Lines           ?     1075           
  Branches        ?      235           
=======================================
  Hits            ?     1033           
  Misses          ?       41           
  Partials        ?        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant