From b963a4564e3d473fc24be39c3758aee230d11314 Mon Sep 17 00:00:00 2001 From: Simon Rose Date: Mon, 16 May 2022 08:55:51 +0200 Subject: [PATCH] Added commend about PBUF having no effect on 'Average' algorithm --- modules/database/src/std/rec/compressRecord.dbd.pod | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/database/src/std/rec/compressRecord.dbd.pod b/modules/database/src/std/rec/compressRecord.dbd.pod index 9323a35cb..20c52f496 100644 --- a/modules/database/src/std/rec/compressRecord.dbd.pod +++ b/modules/database/src/std/rec/compressRecord.dbd.pod @@ -175,6 +175,11 @@ of all four records will be calculated and placed into the VAL field. If PBUF is set to YES, then after each process the average of the first several elements will be calculated. +Note that PBUF has no impact on the C<<< Average >>> method. If one wishes to have a +rolling average computed, then the best way to achieve that is with two compress +records: a C<<< Circular buffer >>> which is linked to an C<<< N to 1 Average >>> +record with PBUF set to YES. + The compression record keeps NSAM data samples. The field N determines the number of elements to compress into each result.