-
Notifications
You must be signed in to change notification settings - Fork 1
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
Query Regarding Gradient Discrepancy in Natural Neighbours Interpolation #25
Comments
The |
I'd probably need the data itself to take a better look at this for you if you would like, along with the code to reproduce your plots. You can attach that here, or if you prefer to keep it private you can email me at danj.vandenheuvel gmail com. |
Thank you once again for your kindness!! 1.first I construct a model like this
2.To verify if the interpolated gradient information is close to the actual values, I selected a straight line where
I merged these interpolated data matrices with the actual discrete data points and created several plots.
From this plot, we can observe that the curve of
|
Thanks @WillingWeiling. Once you email the data I'll try and take a look at some point this week. |
Gsx = Gs[:,1]
Gsy = Gs[:,2]
Gsz = Gs[:,3]
dz = [(row[4], row[5]) for row in eachrow(Gs)] #Gs is a matrix containing data information.
itpF = NaturalNeighbours.interpolate(model.Gsx, model.Gsy, model.Gsz; gradient=model.dz)
diffr = differentiate(itpF, 1)
F = itpF(ϕA, ϕB, method=Nearest(), project=false)
mu = diffr(ϕA, ϕB, interpolant_method=Nearest(), project=false, method=Direct())
/mu = diffr(ϕA, ϕB, interpolant_method=Nearest(), project=false, method=Iterative())
The results obtained by selecting method = Iterative() or Direct() are the same.My objective is to obtain an interpolated convex surface and analyze a cross-section by selecting ten points. However, upon plotting the results, I observed a certain shift in the interpolated gradient positions compared to the true data points.
The horizontal axis in the graph represents x-values, while the vertical axis corresponds to the interpolated gradient data obtained from diffr.
I am wondering if this discrepancy may be attributed to the fact that the provided gradient=model.dz was not effectively utilized during the gradient calculation. I would greatly appreciate your insights into this matter and any suggestions you may have to address this issue.
Originally posted by @WillingWeiling in #24 (comment)
The text was updated successfully, but these errors were encountered: