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

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/utils.R

Description

Converts the glcStruct in ‘new’ format to ‘old’ format whereby a vector of angle is converted to coeffs.

Usage

1
2
3

Arguments

x

object of class glcStruct.

angle

vector.

Value

For new2old_par, object of class glcStruct.

For angle2cart, vector.

Author(s)

Author of the original Matlab routines: Leola Alfonso-Reese

Author of R adaptation: Kazunaga Matsuki

References

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

See Also

old2new_par cart2angle glcStruct

Examples

1
2
3
4
5
6
7
m <- list(c(187, 142), c(213.4, 97.7))
covs <- diag(c(625, 625))
foo <- ldb(means=m, covs=covs)
bar <- old2new_par(foo)
new2old_par(bar)

angle2cart(bar$angle)

matsukik/grt documentation built on May 21, 2019, 12:57 p.m.