From d66bd4aa0bf9c4d9b8793a4e308c9e80691b440f Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sun, 12 Nov 2023 21:40:01 +0100 Subject: Enable links to source, upgrade to bootstrap 5 --- docs/reference/twa.html | 235 +++++++++++++++++------------------------------- 1 file changed, 82 insertions(+), 153 deletions(-) (limited to 'docs/reference/twa.html') diff --git a/docs/reference/twa.html b/docs/reference/twa.html index 2c21c67..fbcbe9a 100644 --- a/docs/reference/twa.html +++ b/docs/reference/twa.html @@ -1,187 +1,116 @@ - - - - - - - -Calculate a time weighted average concentration — twa • pfm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +is after one window has passed.">Calculate a time weighted average concentration — twa • pfm + Skip to contents + +
+
+
-
- +

The moving average is built only using the values in the past, so the earliest possible time for the maximum in the time series returned is after one window has passed.

-
-
twa(x, window = 21)
+    
+

Usage

+
twa(x, window = 21)
+
+# S3 method for one_box
+twa(x, window = 21)
+
-# S3 method for one_box -twa(x, window = 21)
- -

Arguments

- - - - - - - - - - -
x

An object of type one_box

window

The size of the moving window

- -

See also

+
+

Arguments

+
x
+

An object of type one_box

- - -

Examples

-
pred <- sawtooth(one_box(10), - applications = data.frame(time = c(0, 7), amount = c(1, 1))) -max_twa(pred)
#> $max -#> parent -#> 0.9537545 -#> -#> $window_start -#> parent -#> 0 -#> -#> $window_end -#> parent -#> 21 -#>
-
- -
+
+
+

See also

+ +
+ +
+

Examples

+
pred <- sawtooth(one_box(10),
+  applications = data.frame(time = c(0, 7), amount = c(1, 1)))
+max_twa(pred)
+#> $max
+#>    parent 
+#> 0.9537545 
+#> 
+#> $window_start
+#> parent 
+#>      0 
+#> 
+#> $window_end
+#> parent 
+#>     21 
+#> 
+
+
+
- + - - - + -- cgit v1.2.1