从 EMCluster 包中提取参数
Extract parameters from EMCluster package
有没有办法使用 R 的 EMCluster 包提取高斯分布的参数(均值和方差)?
您可以通过 Mu
访问 emret
对象的成员 - 对于方法和 LTSigma
对于分散,如下所示:
library(EMCluster)
set.seed(123)
x1 <- da1$da
class(emobj)
emobj <- simple.init(x1, nclass = 3)
emobj$Mu
# [,1] [,2]
# [1,] 184.6037124 170.59132
# [2,] 117.2505083 -134.48005
# [3,] -0.7252975 -18.01958
emobj$LTSigma
# [,1] [,2] [,3]
# [1,] 24649.929 21479.2133 28175.9235
# [2,] 4971.433 1079.4590 569.7259
# [3,] 2263.597 -413.6173 8381.9084
有没有办法使用 R 的 EMCluster 包提取高斯分布的参数(均值和方差)?
您可以通过 Mu
访问 emret
对象的成员 - 对于方法和 LTSigma
对于分散,如下所示:
library(EMCluster)
set.seed(123)
x1 <- da1$da
class(emobj)
emobj <- simple.init(x1, nclass = 3)
emobj$Mu
# [,1] [,2]
# [1,] 184.6037124 170.59132
# [2,] 117.2505083 -134.48005
# [3,] -0.7252975 -18.01958
emobj$LTSigma
# [,1] [,2] [,3]
# [1,] 24649.929 21479.2133 28175.9235
# [2,] 4971.433 1079.4590 569.7259
# [3,] 2263.597 -413.6173 8381.9084