55void get_perm(
int n,
int* perm,
int seed);
67double gammai(
const double a,
const double x);
70double beta(
const double z,
const double w);
76double betai(
const double p,
const double q,
const double x);
2D Array class for any type T
Stores data of any type T in a 1D array.
Definition Array1D.h:61
Stores data of any type T in a 2D array.
Definition Array2D.h:60
void clust(Array2D< double > &data_in, Array1D< double > &w, int ncl, Array1D< int > &numData, int *pClusterIndex)
K-center clustering of data.
Definition combin.cpp:383
int findNumCl(Array2D< double > &data_in, Array1D< double > &w, int ntry)
Find the best number of clusters in a dataset according to one of three (hardcoded) criteria.
Definition combin.cpp:468
double clust_best(Array2D< double > &data_in, Array1D< double > &w, int ncl, Array1D< int > &bestnumData, int *bestClusterIndex, int ntry)
Multiple trials of K-center clustering and picking the best one according to explained variance crite...
Definition combin.cpp:412
void chooseComb(int n, int k, Array2D< int > &fullInd)
Computes all possible k-combinations of the first n non-negative integers and returns them in fullInd...
Definition combin.cpp:80
int factorial(int number)
Calculates the factorial of a number.
Definition combin.cpp:59
double gammai(const double a, const double x)
Compute the incomplete Gamma function with parameter a at point x.
Definition combin.cpp:149
double beta(const double z, const double w)
Compute the Beta function at the point pair (z,w)
Definition combin.cpp:218
double logfactorial(int number)
Calculates the logfactorial of a number.
Definition combin.cpp:69
double digama(double x)
Computes the digamma, or psi, function, i.e. derivative of the logarithm of gamma function.
Definition combin.cpp:330
int choose(int n, int k)
Calculates binomial coefficient C(n,k): n-choose-k.
Definition combin.cpp:41
double betai(const double p, const double q, const double x)
Compute the incomplete Beta function with parameters a and b at point x.
Definition combin.cpp:256
void get_perm(int n, int *perm, int seed)
Computes a random permutation of the first n non-negative integers and returns is in perm
Definition combin.cpp:123