Learn R Programming

mtk (version 1.0)

mtkFactor: The constructor of the class mtkFactor

Description

The constructor of the class mtkFactor. See also the function make.mtkFactor

Usage

mtkFactor(name="unkown", id="unkown", unit="", type="numeric", domain=mtkDomain(), featureList=list())

Arguments

name
a string to name the factor.
id
a string giving the id of the factor in the code.
unit
a string giving the measurement unit of the factor levels.
type
a string giving the data type of the factor levels.
domain
an object of the class mtkDomain giving the uncertainty domain associated with the factor.
featureList
a list giving the uncertainty domain associated with the factor. It may be a list of objects from the class mtkDomain or a named list defining the features.

Value

mtkFactor class

Examples

Run this code

# Create an object of the class mtkExpFactor
	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))

Run the code above in your browser using DataLab