Learn R Programming

mtk (version 1.0)

setFactors-methods: The setFactors method

Description

Assigns a list of objects of the class mtkFactor to the underlying obejct.

Usage

setFactors(this, aFactList)

Arguments

this
the underlying object of the class mtkExpFactors.
aFactList
a list of objects of the class mtkFactor.

Value

Examples

Run this code

# Build an object of the "mtkExpFactors" class
	ishi.factors <- mtkExpFactors()
	
# Define the 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))
# Assign the factors to the mtkExpFactors' object

	setFactors(ishi.factors, list(x1,x2,x3))

Run the code above in your browser using DataLab