Description Usage Arguments Value Author(s)
C code for nearest centroid. There is a nearcent_R_predict but R code is slower, which is included for debugging and educational purposes.
1 | nearcent_C_predict(chr, parent, tr, te, result)
|
chr |
Chromosome. Must be integer, use as.integer(). |
parent |
Bigbang object. |
tr |
Sample indexes for training vector. Must be integer, use as.integer(). |
te |
Sample indexes for test vector. Must be integer, use as.integer(). |
result |
0 indicates to return class prediction, non-zero returns the proportion of samples with same class prediction. Must be integer, use as.integer(). |
Vector of classes (integer) or numeric value. Depends on result
argument.
Victor Trevino. Francesco Falciani Group. University of Birmingham, U.K.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.