Computing the mean of a vector.
Daniel T Konkle
daniel.konkle@dynetics.com
Wed May 14 20:25:00 GMT 2003
I'm looking through the Reference Manual & I'm trying to figure out if
there is a way to call the gsl_mean function but pass it a vector.
I can't figure out how to access the data in the function:
so for:
double gsl_stats_mean( const double data[], size_t stride, size_t n)
with
gsl_vector *v;
double m;
can I call it like this:
m = gsl_stats_mean( v->data, v->stride, v->size )
and is there an easier way?
Thanks in advance:
Danny
More information about the Gsl-discuss
mailing list