center_data: Centers the observations in a matrix by their respective...

Description Usage Arguments Value

View source: R/helper.r

Description

Centers the observations in a matrix by their respective class sample means

Usage

1

Arguments

x

Matrix or data frame containing the training data. The rows are the sample observations, and the columns are the features. Only complete data are retained.

y

vector of class labels for each training observation

Value

matrix with observations centered by its corresponding class sample mean


sparsediscrim documentation built on July 1, 2021, 9:07 a.m.