Learn R Programming

mtk (version 1.0)

getFeatures-methods: The getFeatures method

Description

Returns the features associated with the underlying factor.

Usage

getFeatures(this)

Arguments

this
an object of the mtkFactor class

Value

Examples

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

# Define a list of features and associate it with the factor
	features <- make.mtkFeatureList(list(pre=5, post=60))
	setFeatures(x1, features)

# Return the features associated with the factor
	fl <- getFeatures(x1)

Run the code above in your browser using DataLab