EVAL
Evaluates the pwag function
Contents
Method of pwag object.
Description
This method, given a point, searches the region which contains it and then computes the related linear function. A matrix of points can also be passed to the method, in this case the function is evaluated in all points. This method employs the mex file evalmex.c.
Syntax
y = eval(object,x,[mode])
x must be a matrix of size or , containing the points in which to evaluate the function. y is a matrix, whose columns are the values of all components of the function in the same point. If an input point is in none of the domain regions, the output is NaN. If object is an array of pwag objects, y is a cell array. Each entry corresponds to a pwag object. NOTE: the objects in array object are supposed to have the same domain partition. Mode is an optional input which can be set to 'normal' or 'tree'. If it is 'normal', for each point, all regions are checked, starting from number 1 to number . If mode is 'tree', the region is located by exploring the binary search tree. If mode is not provided, it is set to 'normal'.
Acknowledgements
Contributors:
- Alberto Oliveri (alberto.oliveri@unige.it)
Copyright is with:
- Copyright (C) 2011 University of Genoa, Italy.