setFeatures-methods: The 'setFeatures' method

Description Usage Arguments Value Author(s) Examples

Description

Sets the features to an object of the mtkFactor class.

Usage

1
setFeatures(this, aFList)

Arguments

this

an object of the class mtkFactor

aFList

a list of mtkFeature objects.

Value

invisible

Author(s)

Hervé Richard, BioSP, Inra, Herve.Richard@avignon.inra.fr, Hervé Monod and Juhui WANG, MIA-jouy, INRA

Examples

1
2
3
4
5
6
7
8
9
# 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)

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