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:


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 Kevin Milner

done in [8506]

comment:2 Changed 12 years ago by Kevin Milner

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.