Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
basic mean and standard deviation (Read 2307 times)
SamW
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 18
basic mean and standard deviation
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
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: basic mean and standard deviation
Reply #1 - 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
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
SamW
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 18
Re: basic mean and standard deviation
Reply #2 - Feb 25th, 2011 at 7:41am
 
Thank you, Sergei!

Sam
Back to top
 
 
IP Logged