DexiFunction-class {DEXiR}R Documentation

DexiFunction

Description

DexiFunction is a base RC class for representing DEXi aggregation and discretization functions in R.

Details

DEXi functions are generally associated with aggregate attributes. For some aggregate attribute att, att$funct defines the mapping from values of att$inputs to values of att.

DexiFunction is a base class that defines fields and methods common to all functions:

DEXiR implements two other function classes derived from DexiFunction: DexiTabularFunction and DexiDiscretizeFunction.

Methods

evaluate(x)

A silent wrapper around value(x); it returns NULL when value(x) fails with an error.

value(x)

Return the function value for arguments x, where arguments are a numeric vector of length equal to att$inputs. Additionally, arguments of a DexiTabularFunctions$value() must be integer numbers, and the argument of DexiDiscretizeFunctions$value() must be a single number.

verify()

Check the correctnes of this function object and its fields. Result: error() or TRUE.


[Package DEXiR version 1.0.2 Index]