|
MuGen
Multitrait genetics
|
Modules | |
| Centering functions | |
Functions | |
| double | mhl (const gsl_vector *beta, const gsl_matrix *SigI) |
| Mahalanobis distance. More... | |
| void | printMat (const gsl_matrix *m) |
| Print matrix to screen. More... | |
| unsigned long long | rdtsc () |
| Accessing the processor RTDSC instruction. More... | |
Various functions that are needed internally.
| double mhl | ( | const gsl_vector * | beta, |
| const gsl_matrix * | SigI | ||
| ) |
Mahalanobis distance.
Calculates the Mahalanobis distance of a vector from zero.
| [in] | gsl_vector* | the vector |
| [in] | gsl_matrix* | the corresponding inverse-covariance matrix |
| void printMat | ( | const gsl_matrix * | m | ) |
Print matrix to screen.
Printing a GSL matrix to screen, with each row on a line, values seprated by spaces.
| [in] | gsl_matrix* | matrix to be displayed |
| [in] | double& | label for missing data |
| unsigned long long rdtsc | ( | ) |
Accessing the processor RTDSC instruction.
This function outputs the processor RTDSC instruction for use in seeding random number generators using assembly code.