Learn R Programming

mtk (version 1.0)

getDiscreteDistributionLevels-methods: The getDiscreteDistributionLevels method

Description

Returns the levels of the discrete distribution associated with the factor's domain.

Usage

getDiscreteDistributionLevels(this)

Arguments

this
the underlying object of the class to proceed (mtkFactor).

Value

Examples

Run this code

# Create a discrete domain
	x1 <- make.mtkFactor(name="x1", distribName="discrete",
		 distribPara= list(type='categorical',
		 levels = c(1,2,3,4,5), weights=rep(0.2, 5)))
		 
# Returns the levels of the associated discrete distribution
	getDiscreteDistributionLevels(x1)
		 


Run the code above in your browser using DataLab