Skip to main content

stdDev (Aggregate Function)

Returns the calculated standard deviation for all the events.

Syntax

    <DOUBLE> stdDev(<INT|LONG|DOUBLE|FLOAT> arg)

QUERY PARAMETERS

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
argThe value that should be used to calculate the standard deviation.INT LONG DOUBLE FLOATNoYes

Example 1

    insert into outputStream
select stddev(temp) as stdTemp
from inputStream;

stddev(temp) returns the calculated standard deviation of temp for all the events based on their arrival and expiration.