fld {pbdML} | R Documentation |
Compute the 2-class Fisher's linear discriminant either in serial or parallel.
fld(x, g)
x |
The data in the form of a matrix or ddmatrix. |
g |
The group variable in the form of a matrix/vector or a ddmatrix. The values should be 0 and 1 exclusively. |
A list of class 'fld' containing the prior probabilities, group means, w vector, and c scalar. In the distributed case, the priors and c scalar are both global, while the other values are distributed.
Drew Schmidt
Duda, R. O., Hart, P. E., & Stork, D. G. (2012). Pattern classification, chapter 5. John Wiley & Sons.
## Not run: x <- matrix(rnorm(30), 10) g <- sample(0:1, size=10, replace=TRUE) fld(x, g) ## End(Not run)