39#define DSFMT_DO_NOT_USE_OLD_NAMES
42#include "KCenterClustering.h"
43#include "figtree_internal.h"
47double erff(
const double x);
122void rperm(
int n,
int *a, dsfmt_t *rnstate);
138void ihsU(
int ns,
int np,
double *rndnos,
int dfac, dsfmt_t *rnstate) ;
140void ihsP(
int ns,
int np,
int *rpos,
int dfac, dsfmt_t *rnstate);
1D Array class for any type T
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
static double x1[]
Definition gkpclib.cpp:36
double normcdfc(double y)
Complementary function for normcdf.
Definition probability.cpp:194
void generate_uniform_lhs(double *rvar, int ns, int nd, int zSeed)
Generates a vector of i.i.d. uniform(0,1) random variable LHS samples of size ns*nd,...
Definition probability.cpp:249
double getMean_Variance(Array2D< double > &data_c, Array1D< double > &w, Array1D< double > &mean)
Vector-mean and weighted variance.
Definition probability.cpp:437
void getMean(Array2D< double > &data_c, Array1D< double > &mean)
Vector mean, column by column.
Definition probability.cpp:460
void getPdf_figtree(Array2D< double > &source, Array2D< double > &target, Array1D< double > &sig, Array1D< double > &density, Array1D< double > &weight)
KDE estimation of a PDF.
Definition probability.cpp:535
double erff(const double x)
An implementation of error function using incomplete gamma function.
Definition probability.cpp:53
void ihsP(int ns, int np, int *rpos, int dfac, dsfmt_t *rnstate)
Definition probability.cpp:761
double get_std(const Array1D< double > &data)
Returns the std of a data array.
Definition probability.cpp:404
void getPdf_cl(Array2D< double > &data, Array2D< double > &points, Array1D< double > &dens, int ncl, double sfac)
Compute the PDF of data at the given points using given number of clusters (if ncl=0,...
Definition probability.cpp:614
void distCorr(const Array2D< double > &spl, Array2D< double > &dCor)
Compute distance correlation factors given a set of samples (no. of rows in spl) from a collection of...
Definition probability.cpp:827
void ihsU(Array2D< double > &rndnos, int dfac, dsfmt_t *rnstate)
Definition probability.cpp:737
double inverf(double y0)
Inverse error function, input scaled to [-1,1].
Definition probability.cpp:59
void generate_normal_lhs(Array2D< double > &rvar, int zSeed)
Generates a matrix of i.i.d. normal(0,1) random variable LHS samples.
Definition probability.cpp:337
double get_median(const Array1D< double > &data)
Returns the median of a data array.
Definition probability.cpp:353
double get_var(const Array1D< double > &data)
Returns the std of a data array.
Definition probability.cpp:421
void generate_uniform(double *rvar, int ns, int nd, int zSeed)
Generates a vector of i.i.d. uniform(0,1) random variable samples of size ns*nd, given integer seed.
Definition probability.cpp:200
void rperm(int n, int *a, dsfmt_t *rnstate)
Random permutation of 0..n-1.
Definition probability.cpp:518
double get_mean(const Array1D< double > &data)
Returns the mean of a 1D data array.
Definition probability.cpp:374
double normcdf(double y)
Normal random variable CDF.
Definition probability.cpp:187
void generate_normal(Array2D< double > &rvar, int zSeed)
Generates a matrix of i.i.d. normal(0,1) random variable samples.
Definition probability.cpp:321
double covariance(Array1D< double > &x1, Array1D< double > &x2, Array1D< double > ¶m, string covtype)
Compute a few standard covariance functions C(x_1,x_2)
Definition probability.cpp:695
double invnormcdf(double y)
Inverse of the CDF of the normal random variable, uses inverf.
Definition probability.cpp:180