Opened 12 years ago
Closed 12 years ago
#381 closed enhancement (fixed)
getInterpolatedY in EvenlyGriddedFunction should use math to find indices, not a loop
Reported by: | Kevin Milner | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | OpenSHA 1.3 |
Component: | commons | Version: | |
Keywords: | Cc: |
Description
The current implementation of getInterpolatedY in EvenlyGriddedFunction? loops over all X values to find the surrounding values. Because this function is evenly gridded, we can easily calculate the index and speed up the calculation. This will help a lot on very large lists (such as for tapered slip distributions in UCERF3).
Change History (2)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
done in [8506]