Hallo!
- something like pwd, witch gives me the directory of the current patch
Guenther once wrote something like this, I thought it was in CVS already? Don't remember the name currently.
thanks - it's "getdir" ...
- something, which gives me the maximum value of a dynamic length list
e.g. [1 3 5 4 ( | [max_length] |
this should give 2 as result (because 5 is the biggest element)
You meant "5" right? That you can do with [maximum] from Cyclone. There also is [minimum].
no, I meant "2", because "5" is the biggest element and has the index "2" (if you count from 0) ... but I have just written it ... (but if someone knows such an object please let me know and I'll forget mine ...)
LG Georg
On Wed, 20 Jul 2005, Georg Holzmann wrote:
Hallo!
- something like pwd, witch gives me the directory of the current patch
Guenther once wrote something like this, I thought it was in CVS already? Don't remember the name currently.
thanks - it's "getdir" ...
AFAIK getdir was slightly different, in any case be careful with that.
Guenter
- something, which gives me the maximum value of a dynamic length list
e.g. [1 3 5 4 ( | [max_length] |
this should give 2 as result (because 5 is the biggest element)
You meant "5" right? That you can do with [maximum] from Cyclone. There also is [minimum].
no, I meant "2", because "5" is the biggest element and has the index "2" (if you count from 0) ... but I have just written it ... (but if someone knows such an object please let me know and I'll forget mine ...)
LG Georg
-- GMX DSL = Maximale Leistung zum minimalen Preis! 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
On Wed, 20 Jul 2005, Georg Holzmann wrote:
[1 3 5 4 ( this should give 2 as result (because 5 is the biggest element)
no, I meant "2", because "5" is the biggest element and has the index "2" (if you count from 0) ... but I have just written it ... (but if someone knows such an object please let me know and I'll forget mine
[1 3 5 4( | [#grade] | [#export_list] | [t b l] | | [3( | | | [listfind] | profit!
actually the [3( is the list length minus 1... if you want to find the smallest element use [0(. If you want the median, use the list length divided by 2. You can also get quartiles and centiles by similar ways.
,-o--------o--------o--------o-. ,---. irc.freenode.net #dataflow | | The Diagram is the Program tm| | ,-o-------------o--------------o-. `-o------------o-------------o-' | | Mathieu Bouchard (Montréal QC) | | téléphone:+1.514.383.3801`---' `-o-- http://artengine.ca/matju -'