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 $n_{dim} \times n_{points}$ or $n_{points} \times n_{dim}$, containing the points in which to evaluate the function. y is a $n_{functions} \times n_{points}$ 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:

Copyright is with: