Description Usage Arguments Value Author(s) References Examples
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
1 2 3 | old2new_par(x)
cart2angle(cart)
|
x |
object of class |
cart |
vector. |
For old2new_par
, object of class glcStruct
.
For cart2angle
, vector.
Author of the original Matlab routines: Leola Alfonso-Reese
Author of R adaptation: Kazunaga Matsuki
Alfonso-Reese, L. A. (2006) General recognition theory of categorization: A MATLAB toolbox. Behavior Research Methods, 38, 579-583.
1 2 3 4 5 6 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.