From: <pl...@pi...> - 2014-04-24 15:37:53
|
On 04/24/14 16:53, Jon Gjengset wrote: > Hi all, > > One feature I've been missing from gnuplot is the ability to normalise a > dataset; that is, scale all values so that they are in [0:1] by dividing > by the maximum value. The attached patch does so by introducing "smooth > normal". The usual thing to do to "normalise" data would be subtract the mean and divide by std dev. I think the design philosophy here has been that most data processing is well catered for elsewhere and GP is not trying to be kitchensink, one stop , DP and plotting tool. However, if you want to do this sort of thing it does not require a patch to gnuplot, just use a function. max(x) =(if (x>biggest)?biggest=max:(x)) biggest=-1e-134; plot datafile 1:max($2) plot datafile 1:($2/biggest) /Peter |