Repository navigation
Commit 18735c3
Priyanshu Maurya
gh-162743: Fix correlation and covariance for large common offsets
Centering on the rounded mean discards the signal when every value shares
a large offset, since the deviations are tiny next to the values being
subtracted. Center on a shifted frame instead, which keeps the deviations
exact, and reuse that for covariance(), which had the same defect.1 parent 49a344e commit 18735c3
3 files changed
Lines changed: 33 additions & 7 deletions
File tree
- Lib
- test
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
659 | 676 | | |
660 | 677 | | |
661 | 678 | | |
| |||
679 | 696 | | |
680 | 697 | | |
681 | 698 | | |
682 | | - | |
683 | | - | |
684 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
685 | 702 | | |
686 | 703 | | |
687 | 704 | | |
| |||
725 | 742 | | |
726 | 743 | | |
727 | 744 | | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
| 745 | + | |
| 746 | + | |
732 | 747 | | |
733 | 748 | | |
734 | 749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2747 | 2747 | | |
2748 | 2748 | | |
2749 | 2749 | | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
2750 | 2758 | | |
2751 | 2759 | | |
2752 | 2760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments