On Mon, 14 Apr 2008, Melchior FRANZ wrote: >* Curtis Olson -- Monday 14 April 2008: >> Let's say I want to do a simple moving average ... > >FlightGear has an aircraft.angular_lowpass() in $FG_ROOT/Nasal/aircraft.nas. >It filters sin() and cos() separately, and builds the angle from that again.
This sounds close to what I was going to suggest - summing/averaging unit vectors. The vectors could proportional to speed if desired. In general, unit vectors are a good way of dealing with circular distributions (they work well for statistical analysis of time-of-day studies, where 2359 and 0001 need to be two minutes apart, not 1338). -- Mike Schuh - Seattle, Washington USA http://www.farmdale.com ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel