bucketizer.rms
bucketizer
The bucketizer.rms
function returns the root mean square of all the values found for each bucket of a bucketized Geo Time Series™.
The location and elevation returned are the last one encountered for each bucket.
The bucketizer.rms
function can only be applied to values of type LONG or DOUBLE, when applied to STRING or BOOLEAN it does not return any value.
bucketizer.rms is available since version 1.2.18.
See also
Signatures
Examples
[
[
NEWGTS "GTS1" RENAME
10 22.0 23.0 NaN 1.0 ADDVALUE
20 NaN NaN 12.0 5.0 ADDVALUE //location for the ]0-20] bucket
NEWGTS "GTS4" RENAME
10 NaN NaN NaN 3.0 ADDVALUE
12 55.0 53.0 NaN 3.0 ADDVALUE //location for the ]0-20] bucket
30 NaN NaN NaN 2.0 ADDVALUE
]
bucketizer.rms
40 //last bucket tick
20 //bucket span
2 //auto count
] BUCKETIZE //will create two buckets ]0-20] ]20-40]
//create a sine with a noise and a -2.0 offset
NEWGTS 'SinePlusNoise' RENAME
0 2000 <% NaN NaN NaN 4 PICK 10.0 / SIN RAND 1.5 * + 2.0 - ADDVALUE %> FOR
'noisySineGTS' STORE
[
$noisySineGTS
bucketizer.rms
2000 //last bucket tick
500 //bucket span
4 //auto count
] BUCKETIZE //will create two buckets ]0-20] ]20-40]
0 GET //extract first gts of the list
'rms' RENAME
$noisySineGTS