HiveMQ Pulse Calculations
HiveMQ Pulse calculations are mathematical operations performed across nodes to produce new values such as sum (SUM) or insights such as overall equipment effectiveness (OEE).
In HiveMQ Pulse, calculations occur as close to the data source as possible.
This distributed approach enables instant feedback for real-time decision-making, minimizes cloud dependency, and optimizes resource use.
HiveMQ Pulse Calculation Types
The HiveMQ Pulse distributed calculation engine offers different categories of mathematical operations and analytical functions to process data and generate insights where they are needed most.
Calculation functions can be configured for data nodes that hold operational data (Field, and Tag nodes) to process real-time data and generate actionable insights for industrial operations.
Name | Definition | Expression Language | Examples |
---|---|---|---|
Absolute |
Returns the absolute value of a number. Negative values are converted to their positive equivalent. |
|
|
Division |
Divides the first input value by the second input value. Returns null or error if the divisor is zero. |
|
|
Minus |
Subtracts the second input value from the first input value. |
|
|
Min |
Returns the smallest value from a set of numeric inputs or data points over a specified timeframe. |
|
|
Max |
Returns the largest value from a set of numeric inputs or data points over a specified timeframe. |
|
|
Product |
Multiplies all input values together to produce a single result. |
|
|
Sum |
Adds all input values together to produce a cumulative total. |
|
|
SMA |
Simple Moving Average. Calculates the average of historical tag values over a time period or set of data points. |
|
|
Rolling Sum |
Calculates the cumulative sum of values within a sliding timeframe and continuously updates as new data points arrive. |
|
|
Name | Definition | Expression Language | Examples |
---|---|---|---|
Count |
Returns the number of valid (non-null) data points within a specified timeframe or sample set. |
|
|
First |
Returns the earliest (oldest) value from a time-series data stream within a specified timeframe. |
|
|
Last |
Returns the most recent (latest) value from a time-series data stream or dataset. |
|
|
MAX_WINDOW |
Sets the upper limit of the time interval permitted for data aggregation in statistical computations and time-series analysis functions. |
|
|
MIN_WINDOW |
Sets the minimum time interval required for meaningful statistical calculations and data aggregation operations. |
|
|
Mean |
Calculates the arithmetic average of all values within a specified timeframe or sample set (the sum of all values / the count of values). |
|
|
Median |
Returns the middle value from a sorted dataset. |
|
|
STDDEV |
Standard Deviation. Calculates the square root of the average squared differences between each data point and the arithmetic mean |
|
|
Variance |
Calculates the average of the squared differences between each data point and the arithmetic mean of the dataset |
|
VARIANCE(pressure_sensor, "2h") returns a 2-hour pressure variability measurement |
EMA |
Exponential Moving Average. Calculates a weighted moving average with more weight on recent values. |
|
|
OEE |
Overall Equipment Effectiveness_. Combines availability, performance and quality factors to calculate a single productivity metric. |
|
|