Skip to main content Skip to footer

Array Statistics Documentation

Version: 1.0.1
Retrieved: 2025-10-09 15:15:13


Array Statistics

Used to calculate statistics for an array of values on the incoming message.

Settings

Name Requirements Purpose Default
Source Property String 1-64 in length Name of property holding the array data
Target Property String 1-64 in length Assign the result object to this property data
Value Property String 0-64 in length If set, use to get the value from each array element. If not set, assume a list of values  

Examples

Example 1: Incoming message has list of integers

# Settings:
Source Property = data
Target Property = stats
Value Property =

# Incoming messages:
{
  "data": [1,2,3]
}

# Outgoing message:
{
  "stats": {
    "min": 1.0,
    "max": 3.0,
    "minPos": 0,
    "maxPos": 2,
    "stdDev": 1.0,
    "sum": 6.0,
    "average": 2.0,
    "count": 3
  },
  "crosser": {
    "success": true
  }
}

Example 2: Incoming message has list of objects

# Settings:
Source Property = data
Target Property = stats
Value Property = value

# Incoming messages:
{
  "data": [
    {
      "value": 1,
    }
    {
      "value": 2
    }
    {
      "value": 3
    }
  ]
}

# Outgoing message:
{
  "stats": {
    "min": 1.0,
    "max": 3.0,
    "minPos": 0,
    "maxPos": 2,
    "stdDev": 1.0,
    "sum": 6.0,
    "average": 2.0,
    "count": 3
  },
  "crosser": {
    "success": true
  }
}