You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Array of (x,y) coordinates defining the function
19
+
minItems: 2
20
+
items:
21
+
type: array
22
+
minItems: 2
23
+
maxItems: 2
24
+
items:
25
+
type: number
26
+
type:
27
+
type: string
28
+
enum: ["linear", "hermite"]
29
+
default: "linear"
30
+
description: Interpolation method to use
31
+
required: ["id", "points"]
32
+
---
33
+
34
+
# Function
35
+
36
+
Inputs: `i1`
37
+
Outputs: `o1`
38
+
39
+
The `Function` operator transforms input values through a user-defined function specified by a set of points. It supports both linear and Hermite interpolation methods.
40
+
41
+
For input values between defined points, the operator performs interpolation according to the specified method:
42
+
43
+
-`linear`: Simple linear interpolation between adjacent points
44
+
-`hermite`: Smooth cubic Hermite interpolation using estimated tangents at each point
45
+
46
+
For input values outside the defined range, the operator extrapolates using the same method.
47
+
48
+
The `Function` operator does not hold a message buffer on `i1`. It emits transformed values through `o1` immediately after receiving input.
49
+
50
+
Example usage for linear interpolation between points (0,0) and (1,1):
0 commit comments