Example

This Data Stream example demonstrates how to use this Function to calculate interpolated value (c1) for input co-ordinates (x1,y1,x2,y2 and x3).

Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the Linear Interpolation Function onto the canvas, link the input to the coordinates and the output to the printer. Rename the Agent and save the Data Stream.

Step 2: Configure General

Select the Agent and double-click to configure. Keep the default Collection.

Step 3: Configure Input Mapping

Select input mappings for x1, y1, x2, y2, and either x3 or y3. In this case, x3 is selected leaving y3 to be calculated.

Enter a name for the new interpolation column. We'll use c1 in this example.

Step 4: Results

Apply the changes, save the Data Stream and publish it.

Let's look at the Live Data View. Observe the c1 column appended to the incoming events. C1 contains the interpolated value calculated from the incoming X1, Y1, X2, Y2, and X3 coordinates.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Last updated