about summary refs log tree commit diff
AgeCommit message (Collapse)Author
4 daysExpose Spearman, so both methods work without a dataset file mainPjotr Prins
`Spearman` was a private struct, so only `Pearson` could be constructed from outside the crate: a caller that already holds two value vectors -- a request handler, an enrichment step, a test -- could not compute the rank correlation without going through `Compute`, which means writing the dataset to a file and reading the result back out of a CSV. That is why `Pearson` was public and `Spearman` was not, and it is not a distinction worth keeping: the p-value code is the same either way. `Compute` remains the streaming path for a whole dataset. tests/in_memory.rs is an integration test (outside the crate, so it can only use the public surface) covering the three pieces that path needs: both methods in memory, the positional row parser dropping unparseable values together with their x, and the |r|-descending/NaN-last ordering. Also documents `Compute::sorter`, which orders by *signed* r while `custom_float_sorter` -- the one `compute` uses -- orders by magnitude. The two disagree for negative correlations; left as is because it is public API, but no longer silent.
2026-01-18Generate lockfile for rust appAlexander_Kabui
2025-11-13Merge pull request #5 from Alexanderlacuna/fixes/rho-magnitude-handlingAlexander Kabui
Sort correlation (ρ) values by absolute magnitude
2025-11-13refactor: Remove reduntant tests.Alexander_Kabui
2025-11-13fix(correlation): sort rho values by absolute magnitude.Alexander_Kabui
2025-11-13feat: Add unittests for checking if negative correlations are handled correctly.Alexander_Kabui
2025-03-04Merge pull request #4 from Alexanderlacuna/chores/sorting-refactoringAlexander Kabui
Chores/sorting refactoring
2025-03-04refactor: Replace redundant double-sorting with a single call to ↵Alexander_Kabui
`custom_float_sorter`.
2025-03-04Refactor `custom_float_sorter` for improved NaN and Infinity handlingAlexander_Kabui
- Place NaNs at the end of the list. - Sort positive infinity (`f64::INFINITY`) before finite numbers. - Sort negative infinity (`f64::NEG_INFINITY`) after finite numbers. - Add tests for negative numbers, NaN, and Infinity cases.
2022-11-28Merge pull request #2 from Alexanderlacuna/bugfix/rust-sorting-floatsAlexander Kabui
add custom sorter function
2022-11-28delete redundant codeAlexanderKabui
2022-11-28apply custom sorterAlexanderKabui
2022-11-28add custom sorter functionAlexanderKabui
2022-10-11Filter out any traits with less than 4 items from the computation.Frederick Muriuki Muriithi
2022-09-30Handle "divide-by-zero"Frederick Muriuki Muriithi
Sort NAN as less than everything else
2022-09-29Docs: setup the LD_LIBRARY_PATHFrederick Muriuki Muriithi
2022-08-15first row also contains values for correlationAlexander_Kabui
current datasetup passes no column names
2022-08-08allow unused variablesAlexander_Kabui
2022-08-08clippy fixesAlexander_Kabui
2022-08-08minor fixesAlexander_Kabui
2022-08-08rust clippy fixesAlexander_Kabui
2022-08-08remove unecessary debug statementsAlexander_Kabui
2022-08-08update result returnedAlexander_Kabui
2022-08-08fix for failing testsAlexander_Kabui
2022-08-08Don't write to rootFrederick Muriuki Muriithi
2022-08-06Fix testsFrederick Muriuki Muriithi
- Eliminate hard-coded absolute paths from the tests and replace them with relative paths - Update tests where data formats have changed
2022-08-06Remove unnecessary parsingFrederick Muriuki Muriithi
JSON already has a way to denote an array of objects, so there is no need to manually parse such arrays from strings.
2022-08-05add patch for readmeAlexander_Kabui
2022-08-05minor fixAlexander_Kabui
2022-08-05Add patchAlexander_Kabui
2022-08-05update docsAlexander_Kabui
2022-07-14minor fixesAlexander_Kabui
2022-07-14cargo formattingAlexander_Kabui
2022-07-14add numoverlap to outputAlexander_Kabui
2022-07-04add output file pathAlexander_Kabui
2022-06-15update docsAlexander
2022-06-15update docsAlexander
2022-06-15minor fixAlexander
2022-06-15resolve conflictAlexander
2022-06-15ignore lock fileAlexander
2022-06-15cargo formattingAlexander
2022-05-28fix dependency issuesAlexander
2022-05-27update cargo versionAlexander
2022-05-27minor fixesAlexander
2022-05-27temp disable ext sorterAlexander
2022-05-27fix for tomlAlexander
2022-05-27remove lock fileAlexander
2022-05-27gitingore lock fileAlexander
2022-05-27Cargo lock updateAlexander
2022-05-27fix version errorAlexander