fld: Fisher's Linear Discriminant

Description Usage Arguments Value Author(s) References Examples

View source: R/fld.r

Description

Compute the 2-class Fisher's linear discriminant either in serial or parallel.

Usage

1
fld(x, g)

Arguments

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.

Value

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.

Author(s)

Drew Schmidt

References

Duda, R. O., Hart, P. E., & Stork, D. G. (2012). Pattern classification, chapter 5. John Wiley & Sons.

Examples

1
2
3
4
5
6
7
## Not run: 
x <- matrix(rnorm(30), 10)
g <- sample(0:1, size=10, replace=TRUE)

fld(x, g)

## End(Not run)

RBigData/pbdML documentation built on July 12, 2019, 6:12 p.m.