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

Improve numerical third derivative #139

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

GuiMacielPereira
Copy link
Collaborator

Description of work:
Function for calculating the third derivative numerically used to pad edges with zeros, which is not desirable.
This slight change makes sure the edges are smooth.

To test:

Fixes #xxxx.

@GuiMacielPereira GuiMacielPereira self-assigned this Nov 19, 2024
The function for the numerical third derivative trims the range of x by
6 columns on each side. In order to match the shape of the data, the
solution is to extend the range of y space so that both y space and the
resulting JOfY function have 6 more points than needed on each side.

After the third derivative is computed, trim JOfY to match shape of FSE.

This solution avoids padding the FSE corrections with zeros, and
maintains the same computational speed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vesuvio-analysis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant