1 Jul 2008 06:49
gsl_stats_sd_m ???
Mehdi Esteghamatian <esteghamat <at> cse.shirazu.ac.ir>
2008-07-01 04:49:33 GMT
2008-07-01 04:49:33 GMT
Dear bug-gsl
Hope you are all fine.
This is Mehdi Stegamatian. I am student of "Artificial Intelligence" in
Shiraz University. It is about 6 mounts that I am using GSL. I found
something which appeared to me as a bug. GSL calculates standard deviation
of single number equal to nan! Which sounds a bit vired to me. I am not a
statistician but according to my knowledge the value is zero.
I included the sample code? Could you tell me what is going on?
Best Wishes,
Mehdi
///////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <gsl/gsl_statistics.h>
#include <gsl/gsl_randist.h>
int main()
{
double darr[1][20];
for (int i = 0; i < 20; i++)
{
for (int j = 0; j < 1; j++)
{
darr[j][i] = i+j;
}
}
(Continue reading)
RSS Feed