running average, min and max

crispypancakes's icon

I'm looking to get a running average from my float data which is on a random metro. has anyone came across a problem like this before?

I'll be attempting to get a minimum and maximum also to normalise the data but one step at a time. any help would be great.

crispypancakes's icon

ha! simply the (mean) object!

Luke Hall's icon

If you want a running average of the n last numbers you can use a combination of [zl stream], [zl sum] and [/] too!

$Adam's icon

Hi,

you might also be interested in [sadam.stat], which will give you the standard deviation of the dataset and will give you some control on the length of the dataset to consider. See https://cycling74.com/forums/announce-the-sadam-library-version-2012-10-08 .

HTH,
Ádám

Liang's icon

compare [mean] with [zl stream] [zl sum] [/]

Max Patch
Copy patch and select New From Clipboard in Max.

Roman Thilenius's icon

i have always been doing it using accum, counter and /