Interpol2D

class Interpol2D

Interpol2D: Interpolation class. Handles lookup from a 2-dimensional grid of real-numbered values. Returns 'z' value based on given 'x' and 'y' values. Can either use interpolation or roundoff to the nearest index.

lookupReturn2D

void (shared message field) This is a shared message for doing lookups on the table. Receives 2 doubles: x, y. Sends back a double with the looked-up z value.

lookup()

(destination message field) Looks up table value based on indices v1 and v2, and sendsvalue back using the 'lookupOut' message

setXmin()

(destination message field) Assigns field value.

getXmin()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setXmax()

(destination message field) Assigns field value.

getXmax()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setXdivs()

(destination message field) Assigns field value.

getXdivs()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setDx()

(destination message field) Assigns field value.

getDx()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setYmin()

(destination message field) Assigns field value.

getYmin()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setYmax()

(destination message field) Assigns field value.

getYmax()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setYdivs()

(destination message field) Assigns field value.

getYdivs()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setDy()

(destination message field) Assigns field value.

getDy()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setTable()

(destination message field) Assigns field value.

getTable()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

getZ()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setTableVector2D()

(destination message field) Assigns field value.

getTableVector2D()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

lookupOut

double (source message field) respond to a request for a value lookup

xmin

double (value field) Minimum value for x axis of lookup table

xmax

double (value field) Maximum value for x axis of lookup table

xdivs

unsigned int (value field) # of divisions on x axis of lookup table

dx

double (value field) Increment on x axis of lookup table

ymin

double (value field) Minimum value for y axis of lookup table

ymax

double (value field) Maximum value for y axis of lookup table

ydivs

unsigned int (value field) # of divisions on y axis of lookup table

dy

double (value field) Increment on y axis of lookup table

tableVector2D

vector< vector<double> > (value field) Get the entire table.

table

vector<unsigned int>,double (lookup field) Lookup an entry on the table

z

vector<double>,double (lookup field) Interpolated value for specified x and y. This is provided for debugging. Normally other objects will retrieve interpolated values via lookup message.