Skip to content

Set max distance to one when it's zero #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2023
Merged

Set max distance to one when it's zero #65

merged 1 commit into from
Apr 19, 2023

Conversation

andreasnoack
Copy link
Member

This avoids a NaN in the tricubic weight calculation and instead
all the observations end up unweighted. This makes all the examples
from issue 28 work.

This PR is based on top of #64 so that one should ideally be merged first.

Closes #28

@codecov-commenter
Copy link

codecov-commenter commented Mar 29, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.04 ⚠️

Comparison is base (49fe426) 93.20% compared to head (453d45b) 93.17%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #65      +/-   ##
==========================================
- Coverage   93.20%   93.17%   -0.04%     
==========================================
  Files           2        2              
  Lines         206      205       -1     
==========================================
- Hits          192      191       -1     
  Misses         14       14              
Impacted Files Coverage Δ
src/Loess.jl 88.11% <100.00%> (-0.12%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

This avoids a NaN in the tricubic weight calculation and instead
all the observations end up unweighted. This makes all the examples
from issue 28 work.
@andreasnoack
Copy link
Member Author

@devmotion this small followup is also ready now

@andreasnoack andreasnoack merged commit fe2ec53 into master Apr 19, 2023
@andreasnoack andreasnoack deleted the an/issue28 branch April 19, 2023 11:58
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.

Getting NaN at boundary, and a few other strange values
3 participants