17.11.2012 Views

Numerical recipes

Numerical recipes

Numerical recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14.2 Do Two Distributions Have the Same Means or Variances? 617<br />

void avevar(float data[], unsigned long n, float *ave, float *var)<br />

Given array data[1..n], returns its mean as ave and its variance as var.<br />

{<br />

unsigned long j;<br />

float s,ep;<br />

}<br />

for (*ave=0.0,j=1;j

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!