setDomain-methods: The 'setDomain' method

Description Usage Arguments Value Author(s) Examples

Description

Associates a new domain with the factor.

Usage

1
setDomain(this, domain)

Arguments

this

an object of the class mtkFactor .

domain

an object of the class mtkDomain .

Value

invisible()

Author(s)

Juhui WANG, MIA-jouy, INRA

Examples

1
2
3
4
5
6
7
8
9
# Define a factor
	x1 <- make.mtkFactor(name="x1")

# Define a domain
	d <- mtkDomain(distributionName="unif", 
		 domainNominalValue=0, distributionParameters = list(max=3, min=0))
	
# Use the setDomain to change the domain of the factor
	setDomain(x1,d)

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