PLearn 0.1
Namespaces | Functions
stats_utils.h File Reference
#include <plearn/vmat/VMat.h>
#include "Mat.h"
Include dependency graph for stats_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Functions

TMat< intPLearn::SpearmanRankCorrelation (const VMat &x, const VMat &y, Mat &r, bool ignore_missing=false)
 Compute the Spearman Rank correlation statistic.
real PLearn::testNoCorrelationAsymptotically (real r, int n)
 Return P(|R|>|r|) two-sided p-value for the null-hypothesis that there is no monotonic dependency, with r the observed Spearman Rank correlation between two paired samples of length n.
void PLearn::testSpearmanRankCorrelationPValues (const VMat &x, const VMat &y, Mat &pvalues, bool ignore_missing=false)
 Compute P(|R|>|r|) two-sided p-value for the null-hypothesis that there is no monotonic dependency, with r the observed Spearman Rank correlation between two paired samples x and y of length n (column matrices).
void PLearn::testSpearmanRankCorrelation (const VMat &x, const VMat &y, Mat &r, Mat &pvalues, bool ignore_missing=false)
 same as above but return also in r the rank correlations
real PLearn::max_cdf_diff (Vec &v1, Vec &v2)
 Returns the max of the difference between the empirical cdf of 2 series of values.
real PLearn::KS_test (real D, real N, int conv)
void PLearn::KS_test (Vec &v1, Vec &v2, int conv, real &D, real &p_value)
 Kolmogorov-Smirnov test.
real PLearn::KS_test (Vec &v1, Vec &v2, int conv=10)
 Returns result of Kolmogorov-Smirnov test between 2 samples The call sorts v1 and v2.
tuple< real, realPLearn::remote_KS_test (Vec &v1, Vec &v2, int conv)
 Returns result of Kolmogorov-Smirnov test between 2 samples (D and p-value) The call sorts v1 and v2.
void PLearn::KS_test (const VMat &m1, const VMat &m2, const int conv, Vec &Ds, Vec &p_values, const bool report_progress)
 This version work with nan value.
tuple< Vec, Vec > PLearn::remote_KS_tests (VMat &m1, VMat &m2, int conv)
 Returns result of Kolmogorov-Smirnov test for each pair of variable between the two VMat (Ds and p-values) The call sorts v1 and v2.
real PLearn::paired_t_test (Vec u, Vec v)
 Given two paired sets u and v of n measured values, the paired t-test determines whether they differ from each other in a significant way under the assumptions that the paired differences are independent and identically normally distributed.
void PLearn::DirichletEstimatorMMoments (const Mat &p, Vec &alpha)
 Estimate the parameters of a Dirichlet by maximum-likelihood.
void PLearn::DirichletEstimatorMaxLik (const Mat &p, Vec &alpha)
 Estimate the parameters of a Dirichlet by maximum-likelihood.

Detailed Description

Definition in file stats_utils.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines