INGOR
Loading...
Searching...
No Matches
ytStat.h
1/*
2 math/ytStat.{h,c} : Statistical routines
3 Copyright (C) 2018, Yoshinori Tamada <tamada A T ytlab.jp>
4 All rights reserved.
5
6 See LICENSE.txt for details of the licensing agreement.
7*/
8#ifndef __YTLIB_STAT_H
9#define __YTLIB_STAT_H
10
11#define ytStat_PI 3.14159265358979323846264
12
13double ytStat_dnorm(double x, double m, double sd);
14void ytStat_mvmean(const double * X, int n, int p, int N, double * mean);
15void ytStat_mvcov(const double * X, int n, int p, int N, const double * m,
16 double * S);
17double ytStat_mvdnorm(const double * x, int p, int N,
18 const double * u, const double * Sinv,
19 double detS);
20double ytStat_logmvdnorm(const double * x, int p, int N,
21 const double * u, const double * Sinv,
22 double detS);
23#endif /* __YTLIB_STAT_H */