EVAL
Evaluates the pwas function.
Contents
Method of pwas object.
Description
This method, given a point, locates the simplex which contains it and then computes the value of the function by linear interpolation through the value of the function in the vertices of the simplex. A matrix of points can also be passed to the method, in this case the function is evaluated in all points.
Syntax
y = eval(object,x)
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.
Acknowledgements
Contributors:
- Tomaso Poggi (tpoggi@essbilbao.org)
Copyright is with:
- Copyright (C) 2010 University of Genoa, Italy.