Learn R Programming

mtk (version 1.0)

getDistributionParameters-methods: The getDistributionParameters method

Description

Gets the parameters of the distribution(s) associated with an object (mtkDomain, mtkFactor or mtkExpFactors).

Usage

getDistributionParameters(this)

Arguments

this
an object of the underlying class (mtkDomain, mtkFactor or mtkExpFactors)

Value

Examples

Run this code
# Define three factors
	x1 <- make.mtkFactor(name="x1", distribName="unif",
		 distribPara=list(min=-pi, max=pi))
	x2 <- make.mtkFactor(name="x2", distribName="unif",
 		 distribPara=list(min=-pi, max=pi))
	x3 <- make.mtkFactor(name="x3", distribName="unif", 
    	 distribPara=list(min=-pi, max=pi))

# Build an object of the "mtkExpFactors" class
	ishi.factors <- mtkExpFactors(list(x1,x2,x3))

# Return the parameters of the distributions managed by all the factors as a nested list
	names <- getDistributionParameters(ishi.factors)

Run the code above in your browser using DataLab