Learn R Programming

grt (version 0.2.1)

old2new_par: Convert 'old' to 'new' glcStruct format

Description

Converts glcStruct in the 'old' to 'new' format for more efficient optimization where coeffs vectors are converted to a vector of angle with length of (coeffs) - 1

Usage

old2new_par(x)

cart2angle(cart)

Arguments

x

object of class glcStruct.

cart

vector.

Value

For old2new_par, object of class glcStruct.

For cart2angle, vector.

References

Alfonso-Reese, L. A. (2006) General recognition theory of categorization: A MATLAB toolbox. Behavior Research Methods, 38, 579-583.

Examples

Run this code
# NOT RUN {
m <- list(c(187, 142), c(213.4, 97.7))
covs <- diag(c(625, 625))
foo <- ldb(means=m, covs=covs)
old2new_par(foo)

cart2angle(foo$coeffs)
# }

Run the code above in your browser using DataLab