From aed160d7f0eaf5865e2bd9bf6c4b1c9d7b13d911 Mon Sep 17 00:00:00 2001 From: Ranke Johannes Date: Wed, 31 Jan 2024 13:16:17 +0100 Subject: Reorganise data generation - Use inst/data_generation for R code generating data as in some of my other packages - data/*.RData files were checked using https://github.com/jranke/dotfiles/blob/main/bin/rda_diff contents were not changed - Remove ChangeLog, the history is in the git logs - Update docs and some links contained therein - use \doi{} markup - Move logs to log directory --- docs/reference/twa.html | 183 +++++++++++++++--------------------------------- 1 file changed, 55 insertions(+), 128 deletions(-) (limited to 'docs/reference/twa.html') diff --git a/docs/reference/twa.html b/docs/reference/twa.html index 2c21c67..f23c6f3 100644 --- a/docs/reference/twa.html +++ b/docs/reference/twa.html @@ -1,63 +1,14 @@ - - - - - - - -Calculate a time weighted average concentration — twa • pfm - - - - - - - - - - - - - - - - - - - - - - - - - - - -Calculate a time weighted average concentration — twa • pfm - - - - - - - - - - - - - + + -
-
- -
- -
+
-

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)
+    
+
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