test_ZVD | R Documentation |
This function is used in SZVDcv and is only meant for internal use at this stage. Will potentially be released in future versions.
test_ZVD(w, test, classMeans, mus, scaling, ztol)
w |
Matrix with columns equal to discriminant vectors. |
test |
matrix containing test set. |
classMeans |
Means of each class in the training set, (used for computing centroids for classification). |
mus |
means/standard devs of the training set, (used for centering/normalizing the test data appropriately). |
scaling |
Logical indicating whether scaling should be done. on the test set. |
ztol |
Threshold for setting values in DVs to zero. |
This function is used by other functions and should only be called explicitly for debugging purposes. Potential release in the future. This function should potentially be made internal for the release.
test_ZVD
returns an object of class
"test_ZVD
" including a list
with the following named components
stats
list containing number of misclassified observations, l0 and l1 norms of discriminants.
pred_labs
predicted class labels according to nearest centroid and the discriminants.
Used by: SZVDcv
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.