AVERAGE_TYPE in interpolations

2 views
Skip to first unread message

Jeremy

unread,
Nov 15, 2022, 8:23:29 AM11/15/22
to autoplot
I rediscovered a feature I put in last summer that might be useful to those writing scripts with interpolation of data in angle or local time, where you can add the property AVERAGE_TYPE and the interpolation will pick the shorter arc around the circle to interpolate.  Here's an example of the property's use: https://github.com/autoplot/dev/blob/master/demos/2022/20220608/demoPerformance.jy .  Values for the property can be found with constants QDataSet.VALUE_AVERAGE_TYPE_MOD360 (meaning that 259 and 1 are only 2 units from one another), QDataSet.VALUE_AVERAGE_TYPE_MOD360, QDataSet.VALUE_AVERAGE_TYPE_MODPI and QDataSet.VALUE_AVERAGE_TYPE_MODTAU, to name a few.  Also there's QDataSet.VALUE_AVERAGE_TYPE_GEOMETRIC, meaning the geometric averages should be used (sqrt(a*b)).

Jeremy
Reply all
Reply to author
Forward
0 new messages