Learn R Programming

mtk (version 1.0)

mtkFeature-class: The mtkFeature class

Description

The mtkFeature class is a class used to manage the features associated with a factor.

Arguments

Class Hierarchy

Parent classes :
mtkValue
Direct Known Subclasses :

Constructor

mtkFeature
signature(name='unknown', type='logical', val=NULL)
make.mtkFeatureList
signature(x=list())

Slots

name:
(character) the name of the feature.
type:
(character) the type of value managed by the feature.
val:
(ANY) the value of the feature in the right type.

Methods

getName
signature( this = "mtkFeature"): Returns the value of the slot "name".
getValue
signature( this = "mtkFeature"): Returns the value of the slot "val".
getType
signature(this = "mtkFeature"): Returns the value of the slot "type".
setName
signature( this = "mtkFeature", name = "character"): Gives a new value to the slot "name".
setType
signature( this = "mtkFeature", type = "character"): Gives a new value to the slot "type".
setValue
signature(this = "mtkFeature", val = "ANY"): Gives a new value to the slot "val".
show
signature( object = "mtkFeature"): Prints a report of the data managed by the underlying object.
print
signature(x = "mtkFeature"): Prints the information managed by the underlying object.

Examples

Run this code
# Create an object of the 'mtkFeature' class.

f <- mtkFeature(name="x", type="double", val=0.0)

# We usually use the make.mtkFeatureList function to define a list of mtkFeature
# instead of the constructor of the mtkFeature class

	flist <- make.mtkFeatureList(list(min=-1,max=+1,shape="hello"))

Run the code above in your browser using DataLab