Learn R Programming

mtk (version 1.0)

mtkParameter: The constructor of the class mtkParameter

Description

The constructor of the class mtkParameter. See alos make.mtkParameterList

Usage

mtkParameter(name='unknown', type='logical', val=NULL)

Arguments

name
(character) the name of the parameter.
type
(character) the type of the parameter such as 'numeric', 'double', 'logical', etc..
val
(ANY) the value of the parameter.

Value

mtkParameter class

Examples

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

p <- mtkParameter(name="x", type="double", val=0.0)

# We usually use the 'make.mtkParameterList()' function to define 
# a list of 'mtkParameter' instead of the constructor 
# of the 'mtkParameter' class
	flist <- make.mtkParameterList(x=list(min=-1,max=+1))

Run the code above in your browser using DataLab