Skip to main content Skip to footer

Search Crosser Knowledge Base

Array Statistics Module

The Module is designed for messages that contain a list of values, such as sensor samples or batch measurements, and it returns a compact statistics object you can reuse across your flow. With a few settings you define where the array is located (Source Property), where the result should be written (Target Property), and optionally which field to extract when the array contains objects (Value Property). The module outputs practical metrics like min, max, average, sum, count, and standard deviation, along with the positions of the min and max values. This makes it easy to implement basic monitoring, anomaly checks, and data reduction before forwarding results to dashboards, historians, or cloud services.

Example input:

{
  "data": [1, 2, 3]
}

Example output:

{
  "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
  }
}

Tip: The module works nicely together with the Array Join and Window modules.

About the author

David Nienhaus | Senior Solution Engineer

David is a Senior Solution Engineer at Crosser. He has over 15 years experience working with software integration and digitization projects for critical infrastructure.
His engineering background gives him the understanding and focus needed to solve customer use cases in the most efficient and successful way.