-
Notifications
You must be signed in to change notification settings - Fork 25
/
kstest.h
38 lines (33 loc) · 1.94 KB
/
kstest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**************************************************************************/
/* Copyright (C) 2006 Romain Michalec */
/* */
/* This library is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License as published by the Free Software Foundation; either */
/* version 2.1 of the License, or (at your option) any later version. */
/* */
/* This library is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
/* Lesser General Public License for more details. */
/* */
/* You should have received a copy of the GNU Lesser General Public */
/* License along with this library; if not, write to the Free Software */
/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, */
/* MA 02110-1301, USA */
/* */
/**************************************************************************/
#ifndef kstest_h
#define kstest_h
#include <list>
#include <cstdlib>
#include <stdio.h>
#include <sstream>
#include <fstream>
#include <vector>
void mMultiply(double *A,double *B,double *C,int m);
void mPower(double *A,int eA,double *V,int *eV,int m,int n);
double K(int n,double d);
double ks_test(std::list<int64_t> s1, std::list<int64_t> s2, std::ostream& output, bool printDebug);
double ks_test_of_uniformity(std::vector<double> sampleVect0to1, std::ostream& outfile, bool printDebug);
#endif /* kstest_h */