To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 27116
27115  |  27117
Subject: 
Re: circular pointer
Newsgroups: 
lugnet.robotics
Date: 
Thu, 17 May 2007 08:28:29 GMT
Original-From: 
linmix <linmix@gmail.^stopspam^com>
Viewed: 
12664 times
  
> > I'm reading "Building Robots with Lego Mindstorms" and in Chapter 12,
> > there is some code to create a circular pointer for an array, with the
> > aim of smoothing averages.
> 
> 
> Another way to accomplish the same result with less code and less memory is to
> use exponential smoothing. (see Wikipedia) The method uses coefficients between
> 0 and 1, but if  you want to use integers you can always use the integer
> numerator and denominator of the fraction.
> 
> Roger Glassey

There's something about that too in the same book. If I have some time
this weekend I'll try to figure that one out. (thanks for the pointer,
I'd forgotten about it)

linmix



Message is in Reply To:
  Re: circular pointer
 
(...) Another way to accomplish the same result with less code and less memory is to use exponential smoothing. (see Wikipedia) The method uses coefficients between 0 and 1, but if you want to use integers you can always use the integer numerator (...) (19 years ago, 16-May-07, to lugnet.robotics)

8 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR