Apply classification method dependent on init.method

mkInitClass(n.g, n.i, n.j, control, y)

Arguments

n.g

Number of clusters

n.i

Number of observations

n.j

Number of columns

control

Classification settings from init.options()

y

Observations

Value

classification vector

Examples

data("faithful")
mkInitClass(2, nrow(faithful), ncol(faithful), init.options(), faithful)
#>   [1] 1 2 1 2 1 2 1 1 2 1 2 1 1 2 1 2 2 1 2 1 2 2 1 2 1 1 2 1 1 1 1 1 1 1 1 2 2
#>  [38] 1 2 1 1 2 1 2 1 1 1 2 1 2 1 1 2 1 2 1 1 2 1 1 2 1 2 1 2 1 1 1 2 1 1 2 1 1
#>  [75] 2 1 2 1 1 1 1 1 1 2 1 1 1 1 2 1 2 1 2 1 2 1 1 1 2 1 2 1 2 1 1 2 1 2 1 1 1
#> [112] 2 1 1 2 1 2 1 2 1 2 1 1 2 1 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 1 2 1 1 1 2 1 2
#> [149] 1 2 1 1 2 1 1 1 1 1 2 1 2 1 2 1 1 1 2 1 2 1 2 2 1 1 1 1 1 2 1 1 2 1 1 1 2
#> [186] 1 1 2 1 2 1 2 1 1 1 1 1 1 2 1 2 1 1 2 1 2 1 1 2 1 2 1 2 1 1 1 2 1 2 1 2 1
#> [223] 2 1 1 1 1 1 1 1 1 2 1 2 1 2 2 1 1 2 1 2 1 1 1 1 2 1 2 1 2 1 1 1 1 1 1 1 2
#> [260] 1 1 1 2 1 2 2 1 1 2 1 2 1