Interpol

class Interpol

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

proc

void (shared message field) Shared message for process and reinit

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.

getY()

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

input()

(destination message field) Interpolates using the input as x value.

process()

(destination message field) Handles process call, updates internal time stamp.

reinit()

(destination message field) Handles reinit call.

lookupOut

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

xmin

double (value field) Minimum value of x. x below this will result in y[0] being returned.

xmax

double (value field) Maximum value of x. x above this will result in y[last] being returned.

y

double (value field) Looked up value.