Re: [PD] smallest number from a stream of numbers

2008-07-09 Thread Hans Roels
I don't think you need lists for this, just 2 objects [min] [trigger] and an initial value. in attach is an example with a random stream of numbers. hans r At 21:47 8/07/2008, you wrote: Frank Barknecht wrote: Hallo, cyrille henry hat gesagt: // cyrille henry wrote: Ben Carney a écrit :

Re: [PD] smallest number from a stream of numbers

2008-07-09 Thread Frank Barknecht
Hallo, Hans Roels hat gesagt: // Hans Roels wrote: I don't think you need lists for this, just 2 objects [min] [trigger] and an initial value. in attach is an example with a random stream of numbers. That's the general approach to find min and max in a stream of numbers and it's internally

Re: [PD] smallest number from a stream of numbers

2008-07-09 Thread Hans-Christoph Steiner
Oops, I forgot to add, the min/trigger and track_min/max examples give the min/max for all of the past values. Cyrille's example with [last_n] gives you the min and max for the past thirty values. There is also [local_min] and [local_max] for tracking trends. .hc On Jul 9, 2008, at 11:00

Re: [PD] smallest number from a stream of numbers

2008-07-09 Thread Hans-Christoph Steiner
There is also [track_min] and [track_max] in the mapping lib. .hc On Jul 9, 2008, at 11:00 AM, Hans Roels wrote: I don't think you need lists for this, just 2 objects [min] [trigger] and an initial value. in attach is an example with a random stream of numbers. hans r At 21:47

[PD] smallest number from a stream of numbers

2008-07-08 Thread Ben Carney
Hello there list! pretty simple question I think, but I'm a bit stumped. I have a stream of numbers coming in from a flex sensor and I would love to be able to grab the lowest number from x amount of numbers, every 30 numbers or so. I looked through the [list minmax] example, but could not

Re: [PD] smallest number from a stream of numbers

2008-07-08 Thread cyrille henry
Ben Carney a écrit : Hello there list! pretty simple question I think, but I'm a bit stumped. I have a stream of numbers coming in from a flex sensor and I would love to be able to grab the lowest number from x amount of numbers, every 30 numbers or so. I looked through the [list

Re: [PD] smallest number from a stream of numbers

2008-07-08 Thread Frank Barknecht
Hallo, cyrille henry hat gesagt: // cyrille henry wrote: Ben Carney a écrit : Hello there list! pretty simple question I think, but I'm a bit stumped. I have a stream of numbers coming in from a flex sensor and I would love to be able to grab the lowest number from x amount of

Re: [PD] smallest number from a stream of numbers

2008-07-08 Thread Ben Carney
hmm... I have to say I don't quite know what this [mapping] is. I tried the obvious (trying to create a [mapping] object). can I get a bit of a further explanation f what you mean, cyrille? thanks On Tue, Jul 8, 2008 at 1:58 PM, cyrille henry [EMAIL PROTECTED] wrote: Ben Carney a écrit :

Re: [PD] smallest number from a stream of numbers

2008-07-08 Thread Ben Carney
oh shit. there is a mapping/last_n object. I thought you meant using the mapping object with my last 30 numbers. argh - On Tue, Jul 8, 2008 at 2:31 PM, Ben Carney [EMAIL PROTECTED] wrote: hmm... I have to say I don't quite know what this [mapping] is. I tried the obvious (trying to

Re: [PD] smallest number from a stream of numbers

2008-07-08 Thread Enrique Erne
Frank Barknecht wrote: Hallo, cyrille henry hat gesagt: // cyrille henry wrote: Ben Carney a écrit : Hello there list! pretty simple question I think, but I'm a bit stumped. I have a stream of numbers coming in from a flex sensor and I would love to be able to grab the lowest number