Reseting the Minimum
Hey there,
Many thanks to VZE1 on helping me with my earlier question. I do have a new one now, but I suspect there is an even simpler answer that is just out of my grasp:
I have a source that is rapidly giving me a random set of numbers. I would like to have a Flonum object that only reports the highest number. Suppose I first get a .002 ... it will indicate that until a .056 comes in, and then it can never go lower than that. Sort of like a minimum that resets itself every time it gets a new higher number. Thanks!!
On 9 avr. 08, at 11:20, Brent Huras wrote:
> I have a source that is rapidly giving me a random set of numbers. I
> would like to have a Flonum object that only reports the highest
> number. Suppose I first get a .002 ... it will indicate that until
> a .056 comes in, and then it can never go lower than that. Sort of
> like a minimum that resets itself every time it gets a new higher
> number. Thanks!!
You can connect the output of [maximum 0.] to it's rightmost input
(thru a [float] or float numbox).
_____________________________
Patrick Delges
Centre de Recherches et de Formation Musicales de Wallonie asbl
http://www.crfmw.be/max
Have a look at [peak].
Ciao.
You can also use lp.stacey, which tracks min/max/mean as well as standard deviation and several other statistical characteristics of incoming data.
Part of the Litter Starter Pack. URI below.
Best -- Peter