"curveDataSourceCurve"
The attribute "curveDataSourceCurve" specifies another curve as data source for a curve.
Synopsis
shape.curveDataSourceCurve(string curve, string sourceCurve, mapping
options);
Parameters
| Parameter | Description |
|---|---|
| shape | Object name |
| curve | The curve which will calculate the data from the sourceCurve |
| sourceCurve | The curve which represents the data source. If this is given as an empty string, the auto-calculation is removed. |
| options | An optional mapping to specify the curve calculations and
intervals. If this is left as an empty string ("") the default
setting is applied:
|
Details
The function "curveDataSourceCurve" will by default automatically calculate the average("avg") of the sourceCurve and display it as the given curve. Modifications to this behaviour can be passed via the optional options mapping. This mapping can contain the following key/value pairs:
| Key | Value Datatype | Value Description |
|---|---|---|
| "interval" | uint | The seconds per calculation interval. |
| "func" | string | The statistical function to be used. The statistical functions
are described in datapoint
functions - statistical functions. Please refer to the
table for the corresponding CTRL constants. The statistical
functions which can be used in this curve function are:
|
| "timeAt" | string | This option influences the time stamp used for the calculated
value. It can be one of the following:
|
