Learn R Programming

mtk (version 1.0)

setFeatures-methods: The setFeatures method

Description

Sets the features to an object of the mtkFactor class.

Usage

setFeatures(this, aFList)

Arguments

this
an object of the class mtkFactor
aFList
a list of mtkFeature objects.

Value

Examples

Run this code

# Build an object of the "mtkFactor" class
	x1 <- make.mtkFactor(name="x1", type="double", nominal=0, distribName="unif",
		 distribPara=list(min=-pi, max=pi))
# Define the list of features
	f <- make.mtkFeatureList(list(f=4.5,c=+6,shape="parabolic"))
	
# Assign the features to the factor

	setFeatures(x1,f)

Run the code above in your browser using DataLab