[gradsusr] coefficient of variation
Jeff Duda
jeffduda319 at gmail.com
Mon Feb 6 12:49:13 EST 2012
The coefficient of variation is just a normalized standard deviation (std
dev / mean). It's generally only meant to be applied to data sets that are
all of the same sign (all positive or all negative). You can use the ave
or aave functions in Grads to compute the mean over some area or time
extent. You can then use the mean to compute the spread using the popular
equation for standard deviation: std dev = sqrt(1/(N-1) *
sum[(x-ave(x))^2]). That should be fairly easy for you to code up. Do you
need help with the coding?
Jeff Duda
On Mon, Feb 6, 2012 at 9:18 AM, Ismaila Diallo <ismailadiallo64 at yahoo.fr>wrote:
> Hi,
>
> Does someone has a grads script which can calculate the coefficient of
> variation or knows how to do it with grads.
>
> Thansk in advance
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120206/81f2b4cf/attachment-0003.html
More information about the gradsusr
mailing list