Skip to content
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

Extrapolator Structure and NearestSimplexExtrapolator for Parametrized Components #236

Merged
merged 5 commits into from
Jul 10, 2023

Conversation

RuneDominik
Copy link
Member

This adds a BaseExtrapolator structure similar to the BaseInterpolators as well as a first Extrapolator usable with parametrized components. The actual extrapolator extends a linear interpolation beyond the template points in 1D and a baryzentric interpolation beyond the convex hull of the grid in 2D. Extrapolation in more then 2D is not implemented.

@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Patch coverage: 99.06% and project coverage change: +0.39 🎉

Comparison is base (83ea9aa) 93.94% compared to head (642940a) 94.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
+ Coverage   93.94%   94.33%   +0.39%     
==========================================
  Files          54       58       +4     
  Lines        2544     2738     +194     
==========================================
+ Hits         2390     2583     +193     
- Misses        154      155       +1     
Impacted Files Coverage Δ
...ion/tests/test_component_estimator_base_classes.py 96.96% <92.30%> (-0.28%) ⬇️
pyirf/benchmarks/angular_resolution.py 100.00% <100.00%> (ø)
pyirf/benchmarks/tests/test_angular_resolution.py 100.00% <100.00%> (ø)
pyirf/interpolation/__init__.py 100.00% <100.00%> (ø)
pyirf/interpolation/base_extrapolators.py 100.00% <100.00%> (ø)
pyirf/interpolation/component_estimators.py 100.00% <100.00%> (ø)
pyirf/interpolation/moment_morph_interpolator.py 100.00% <100.00%> (ø)
pyirf/interpolation/nearest_neighbor_searcher.py 100.00% <100.00%> (ø)
...yirf/interpolation/nearest_simplex_extrapolator.py 100.00% <100.00%> (ø)
...irf/interpolation/tests/test_base_extrapolators.py 100.00% <100.00%> (ø)
... and 3 more

... and 1 file with indirect coverage changes

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

@RuneDominik RuneDominik force-pushed the barycentric_parametrized_extrapolation branch from 58151fa to 962dd2e Compare July 7, 2023 10:31
maxnoe
maxnoe previously approved these changes Jul 7, 2023
@maxnoe maxnoe merged commit 6e1a5b7 into main Jul 10, 2023
@maxnoe maxnoe deleted the barycentric_parametrized_extrapolation branch July 10, 2023 14:45
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.

3 participants