HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
Methodology Questions >> How to >> basic mean and standard deviation
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1297450428

Message started by SamW on Feb 11th, 2011 at 10:53am

Title: basic mean and standard deviation
Post by SamW on Feb 11th, 2011 at 10:53am
Are there macros for mean and standard deviation on a vector of data points?  If so, can you point me to it?

Thanks,
Sam

Title: Re: basic mean and standard deviation
Post by Sergei on Feb 18th, 2011 at 8:33am
Hi Sam,

Look at TemplateBatchFiles/Utility/DescriptiveStatistics.bf
There is a function there (GatherDescriptiveStats) which returns all kinds of summary and descriptive stats.

For example, try:


Code (]

RequireVersion("2.0020110101")
someValues = {100,1}["Random(0,1)"):

;
LoadFunctionLibrary ("DescriptiveStatistics");

fprintf (stdout, GatherDescriptiveStats (someValues));


Sergei

Title: Re: basic mean and standard deviation
Post by SamW on Feb 25th, 2011 at 7:41am
Thank you, Sergei!

Sam

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.