getWeights-methods: The 'getWeights' method

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
getWeights(this)

Arguments

this

the underlying object of the class to proceed (mtkLevels and mtkDomain).

Value

a list of numeric values.

Author(s)

Juhui WANG, MIA-jouy, INRA

Examples

1
2
3
4
5
6
7
# Create a discrete domain
	x1 <- mtkDomain(distributionName="discrete", domainNominalValue=0,
		 distributionParameters=list(type='categorical',
		 levels = c(1,2,3,4,5), weights=rep(0.2, 5)))
# Returns the weights of the associated discrete distribution
	getWeights(x1)
		 

mtk documentation built on May 2, 2019, 4:15 a.m.