Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getNb

Accessor for 'nb' slot


Description

This function outputs number of blocks of the variable block structure.

Usage

getNb(object)

## S4 method for signature 'VB'
getNb(object)

## S4 method for signature 'HMMVB'
getNb(object)

Arguments

object

Object of class "VB" or "HMMVB".

Examples

# accessing nb in instance of class VB
Vb <- vb(2, dim=10, bdim=c(4,6), numst=c(3,11), varorder=list(c(1:4),c(5:10)))
getNb(Vb)

# accessing nb in instance of class HMMVB 
data("sim3")
Vb <- vb(2, dim=40, bdim=c(10,30), numst=c(3,5), varorder=list(c(1:10),c(11:40)))
set.seed(12345)
hmmvb <- hmmvbTrain(sim3[,1:40], VbStructure=Vb)
getNb(hmmvb)

HDclust

Clustering High Dimensional Data with Hidden Markov Model on Variable Blocks

v1.0.3
GPL (>= 2)
Authors
Yevhen Tupikov [aut], Lin Lin [aut], Lixiang Zhang [aut], Jia Li [aut, cre]
Initial release
2019-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.