This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bug in covariance_source.cpp??


Juan Jose Gomez Cadenas writes:
 > In covariance_source.cpp, the function gsl_stats_covariance
 > calls the function covariance_m but I believe it should
 > call the function covariance


The _m function takes a precomputed mean, rather than a "known
mean" (in the statistical sense), so I believe the factor of
1/(n-1) is ok and should be the same for both cases.  Maybe
this should be clarified in the documentation though.

-- 
Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]