-
Notifications
You must be signed in to change notification settings - Fork 22
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
Optimize the calculation of integrals and similarities #78
Comments
This comment has been minimized.
This comment has been minimized.
I may have misunderstood the capabilities of |
Using
It would therefore be relevant to revisit the |
The new algorithm almost eliminates the time required for the identification of similarities. The calculation time is also reduced by using Here a 3 test cases for the speed and accuracy of the new method (comparing the New algorithm with the Old):
All results are shown below. The new method performs better in all tested cases, especially for the special field. Some differences are seen in the comparisons for rectangular fields. The new method finds distances for similarities differently than the old method. In the new method, the distance for a group of similar pairs is the average distance, whereas in the old method the distance is the first one found. This could be verified by decreasing the tolerance Case 1 : Rectangular fields up to 12 by 12Case 2 : Number of segments for a 5 by 5 bore fieldCase 3 : Field of 100 boreholes with 2 different lengths |
2021-05-19 : Results are from 841e011. Additional test cases for the
Case 1' : Rectangular fields up to 5 by 5Case 2' : Number of segments for a 5 by 5 bore fieldThe differences are caused by the use of Case 4' : Field of 5 uneven boreholes |
2021-05-20 : Results are from 841e011. Here we compare the new
Case 1'' : Rectangular fields up to 12 by 12The new Case 2'' : Number of segments for a 5 by 5 bore fieldCase 3'' : Field of 100 boreholes with 2 different lengthsCase 4'' : Field of 5 uneven boreholes |
Consider using quadpy or other specialized integration packages to speed up the calculation of integrals.
quadpy
supports vectorization for the integral bounds and has many options for integration schemes (some of which might be better adapted to the evaluation of the FLS).I just checked and scipy seems to have support vectorization of the integrand. It could be used to vectorize over distances, whereas
quadpy
can vectorize over time.The text was updated successfully, but these errors were encountered: