1 #ifndef _MATHFUNCTIONS_H_ 2 #define _MATHFUNCTIONS_H_ 24 inline void OR(
bool *dest,
bool *src){
25 dest[0] = (dest[0] | src[0]);
26 dest[1] = (dest[1] | src[1]);
27 dest[2] = (dest[2] | src[2]);
28 dest[3] = (dest[3] | src[3]);
29 dest[4] = (dest[4] | src[4]);
30 dest[5] = (dest[5] | src[5]);
double sumDeviation(const double *data, int n)
float * createCDF(float *famProb, int size)
double * sumDevAry3(double *data)
int maxElmtIdx(double *data, int n)
int indexFromProb_and_P32Status(float *CDF, double roll, int famSize, int cdfSize, int &cdfIdx)
int * sortedIndex(const double *arr, int n)
void OR(bool *dest, bool *src)
float truncatedPowerLaw(float randomNum, float emin, float emax, float alpha)
void adjustCDF_and_famProb(float *&CDF, float *&famProbability, int &cdfSize, int idx2Remove)
int cdfIdxFromFamNum(float *CDF, bool *p32Status, int famIdx)
int indexFromProb(float *CDF, double roll, int size)
double getArea(struct Poly &poly)