Skip to content

feat: equal integration vector#388

Merged
lpatiny merged 5 commits into
mainfrom
feat/equal-integration-vector
Jul 20, 2026
Merged

feat: equal integration vector#388
lpatiny merged 5 commits into
mainfrom
feat/equal-integration-vector

Conversation

@lpatiny

@lpatiny lpatiny commented Jul 20, 2026

Copy link
Copy Markdown
Member
  • feat: add xyEqualIntegrationVector and xEqualIntegrationVectorSimilarity
  • chore: do not lint .claude
  • fix: matrixApplyNumericalEncoding returned a matrix of zeros
  • refactor: compute the rescaling factor once in matrixZPivotRescale
  • chore: update dependencies

lpatiny added 5 commits July 20, 2026 18:47
Split a spectrum in parts of equal integration rather than on centers of
mass. A center of mass averages positions, so its splits land between the
peaks instead of on them (3.32 and 6.68 for peaks at 2.5/5/7.5), and every
point is weighted by its own x value, which lets the noise of a long
baseline drag the result. The new splits follow the integration, so they
point at the signal and hardly move with a noise as high as the peaks.

xyMassCenterVector and xMassCenterVectorSimilarity are deprecated in favor
of them and keep their exact behaviour, the latter now delegating so that
the similarity algorithm exists only once.
eslint . was descending into the agent worktrees under .claude and
reporting errors on stale copies of the sources. The directory is already
gitignored.
It started from matrixCreateEmpty instead of the initial matrix, so no
value was ever a string, nothing was encoded and the numeric columns were
lost. Clone the initial matrix and encode it in place.

The test only checked that every value was a number, which a matrix of
zeros satisfies, so it now asserts the expected values.
The factor does not depend on the column, it was recomputed on every
iteration.
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.35%. Comparing base (9fed281) to head (fc6405c).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #388      +/-   ##
==========================================
+ Coverage   97.13%   97.35%   +0.22%     
==========================================
  Files         207      212       +5     
  Lines        4147     4232      +85     
  Branches     1036     1054      +18     
==========================================
+ Hits         4028     4120      +92     
+ Misses        115      109       -6     
+ Partials        4        3       -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.

@lpatiny lpatiny changed the title feat/equal integration vector feat: equal integration vector Jul 20, 2026
@lpatiny
lpatiny merged commit ba0d8f3 into main Jul 20, 2026
10 checks passed
@lpatiny
lpatiny deleted the feat/equal-integration-vector branch July 20, 2026 16:55
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