Skip to content

Correlation function for discrete variable correlation#7326

Open
kvadrik wants to merge 8 commits intoTheAlgorithms:masterfrom
kvadrik:patch-7
Open

Correlation function for discrete variable correlation#7326
kvadrik wants to merge 8 commits intoTheAlgorithms:masterfrom
kvadrik:patch-7

Conversation

@kvadrik
Copy link
Contributor

@kvadrik kvadrik commented Mar 20, 2026

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new algorithms include a corresponding test class that validates their functionality.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

kvadrik added 2 commits March 20, 2026 21:06
Added unit tests for the Correlation class to validate correlation calculations under various scenarios, including linear dependence and constant values.
@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2026

Codecov Report

❌ Patch coverage is 0% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.38%. Comparing base (af1d9d1) to head (e037c7b).

Files with missing lines Patch % Lines
...main/java/com/thealgorithms/maths/Correlation.java 0.00% 22 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7326      +/-   ##
============================================
- Coverage     79.45%   79.38%   -0.07%     
- Complexity     7074     7076       +2     
============================================
  Files           789      790       +1     
  Lines         23150    23172      +22     
  Branches       4553     4555       +2     
============================================
+ Hits          18393    18395       +2     
- Misses         4021     4043      +22     
+ Partials        736      734       -2     

☔ View full report in Codecov by Sentry.
📢 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.

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.

2 participants