image: For each of the K clusters, display 16 images in the plot

Description Usage Arguments Value Examples

View source: R/image.R

Description

For each of the K clusters, display 16 images in the plot

Usage

1
image(x, ...)

Arguments

K

the number of clustersß

ans

classification of images

shuffle_train

original dataset

Value

plots of image

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
image(K, ans, shuffle_train)
Y = Readjpeg(shuffle_train)
N = nrow(Y)
p = ncol(Y)
K = 4
prob = runif(K, min=0.1, max = 0.9)
prob = prob/sum(prob)
mean = matrix(rnorm(K*p), K, p)
sigma = array(rep(diag(p), K), dim = c(p, p, K))
ans = EM(prob, mean, sigma, Y)
image(K, ans, shuffle_train)

yehanxuan/tamu-689-final documentation built on Dec. 8, 2019, 5:25 p.m.