From ff34b88a2411a92887a09084a623cfc98fae39b0 Mon Sep 17 00:00:00 2001 From: sjmgarnier Date: Wed, 14 Aug 2024 15:43:20 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20swarm-la?= =?UTF-8?q?b/wcec@d6f73b6271b9b8936d36501c1d7a87db7cd35dfa=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgdown.yml | 2 +- reference/dot-wcov.html | 11 +++++++++-- search.json | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgdown.yml b/pkgdown.yml index dd118e2..964eb6e 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: 3.1.11 pkgdown: 2.1.0 pkgdown_sha: ~ articles: {} -last_built: 2024-08-07T16:20Z +last_built: 2024-08-14T15:43Z urls: reference: https://swarm-lab.github.io/wcec/reference article: https://swarm-lab.github.io/wcec/articles diff --git a/reference/dot-wcov.html b/reference/dot-wcov.html index dee6afb..a474b39 100644 --- a/reference/dot-wcov.html +++ b/reference/dot-wcov.html @@ -72,8 +72,15 @@

Author<

Examples

m <- matrix(c(rnorm(500, 6), rnorm(500, 11, 3)), ncol = 2)
 w <- runif(500)
-gravitree:::.wcov(m, w)
-#> Error in loadNamespace(x): there is no package called ‘gravitree’
+wcec:::.wcov(m, w)
+#> $center
+#> [1]  6.079087 11.054456
+#> 
+#> $cov
+#>          [,1]     [,2]
+#> [1,] 1.104458 0.156673
+#> [2,] 0.156673 8.448055
+#> 
 
 
diff --git a/search.json b/search.json index 8b20069..82f38ab 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://swarm-lab.github.io/wcec/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"First Last. Author, maintainer.","code":""},{"path":"https://swarm-lab.github.io/wcec/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Last F (2024). wcec: Package (One Line, Title Case). R package version 0.0.0.9000, https://swarm-lab.github.io/wcec/, https://github.com/swarm-lab/wcec.","code":"@Manual{, title = {wcec: What the Package Does (One Line, Title Case)}, author = {First Last}, year = {2024}, note = {R package version 0.0.0.9000, https://swarm-lab.github.io/wcec/}, url = {https://github.com/swarm-lab/wcec}, }"},{"path":"https://swarm-lab.github.io/wcec/index.html","id":"wcec","dir":"","previous_headings":"","what":"What the Package Does (One Line, Title Case)","title":"What the Package Does (One Line, Title Case)","text":"goal wcec …","code":""},{"path":"https://swarm-lab.github.io/wcec/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"What the Package Does (One Line, Title Case)","text":"can install development version wcec GitHub :","code":"# install.packages(\"pak\") pak::pak(\"swarm-lab/wcec\")"},{"path":"https://swarm-lab.github.io/wcec/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"What the Package Does (One Line, Title Case)","text":"basic example shows solve common problem:","code":"library(wcec) ## basic example code"},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":null,"dir":"Reference","previous_headings":"","what":"Weighted Covariance Matrix — .wcov","title":"Weighted Covariance Matrix — .wcov","text":"wcov computes estimates weighted covariance matrix weighted mean data.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Weighted Covariance Matrix — .wcov","text":"","code":".wcov(x, w)"},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Weighted Covariance Matrix — .wcov","text":"x matrix \\(m\\) columns \\(n\\) rows, column represents different variable row different observation. w non-negative non-zero vector weights observation. length must equal number rows x.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Weighted Covariance Matrix — .wcov","text":"list two components: center: estimate center (mean) data. cov: estimated (weighted) covariance matrix.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Weighted Covariance Matrix — .wcov","text":"Simon Garnier, garnier@njit.edu","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Weighted Covariance Matrix — .wcov","text":"","code":"m <- matrix(c(rnorm(500, 6), rnorm(500, 11, 3)), ncol = 2) w <- runif(500) gravitree:::.wcov(m, w) #> Error in loadNamespace(x): there is no package called ‘gravitree’"},{"path":"https://swarm-lab.github.io/wcec/reference/four_Gaussians.html","id":null,"dir":"Reference","previous_headings":"","what":"Four Gaussian Clusters — four_Gaussians","title":"Four Gaussian Clusters — four_Gaussians","text":"Matrix 2-dimensional points forming four Gaussian clusters.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/four_Gaussians.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Four Gaussian Clusters — four_Gaussians","text":"","code":"data(four_Gaussians) plot(four_Gaussians, pch = 19)"},{"path":"https://swarm-lab.github.io/wcec/reference/three_Gaussians.html","id":null,"dir":"Reference","previous_headings":"","what":"Three Gaussian Clusters — three_Gaussians","title":"Three Gaussian Clusters — three_Gaussians","text":"Matrix 2-dimensional points forming three Gaussian clusters.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/three_Gaussians.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Three Gaussian Clusters — three_Gaussians","text":"","code":"data(three_Gaussians) plot(three_Gaussians, pch = 19)"},{"path":"https://swarm-lab.github.io/wcec/reference/wcec.html","id":null,"dir":"Reference","previous_headings":"","what":"wcec: ... — wcec","title":"wcec: ... — wcec","text":"wcec package provides ...","code":""},{"path":[]},{"path":[]},{"path":"https://swarm-lab.github.io/wcec/reference/wcec.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"wcec: ... — wcec","text":"Simon Garnier garnier@njit.edu Jason Graham jason.graham@scranton.edu Maintainer: Simon Garnier garnier@njit.edu","code":""}] +[{"path":"https://swarm-lab.github.io/wcec/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"First Last. Author, maintainer.","code":""},{"path":"https://swarm-lab.github.io/wcec/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Last F (2024). wcec: Package (One Line, Title Case). R package version 0.0.0.9000, https://swarm-lab.github.io/wcec/, https://github.com/swarm-lab/wcec.","code":"@Manual{, title = {wcec: What the Package Does (One Line, Title Case)}, author = {First Last}, year = {2024}, note = {R package version 0.0.0.9000, https://swarm-lab.github.io/wcec/}, url = {https://github.com/swarm-lab/wcec}, }"},{"path":"https://swarm-lab.github.io/wcec/index.html","id":"wcec","dir":"","previous_headings":"","what":"What the Package Does (One Line, Title Case)","title":"What the Package Does (One Line, Title Case)","text":"goal wcec …","code":""},{"path":"https://swarm-lab.github.io/wcec/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"What the Package Does (One Line, Title Case)","text":"can install development version wcec GitHub :","code":"# install.packages(\"pak\") pak::pak(\"swarm-lab/wcec\")"},{"path":"https://swarm-lab.github.io/wcec/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"What the Package Does (One Line, Title Case)","text":"basic example shows solve common problem:","code":"library(wcec) ## basic example code"},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":null,"dir":"Reference","previous_headings":"","what":"Weighted Covariance Matrix — .wcov","title":"Weighted Covariance Matrix — .wcov","text":"wcov computes estimates weighted covariance matrix weighted mean data.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Weighted Covariance Matrix — .wcov","text":"","code":".wcov(x, w)"},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Weighted Covariance Matrix — .wcov","text":"x matrix \\(m\\) columns \\(n\\) rows, column represents different variable row different observation. w non-negative non-zero vector weights observation. length must equal number rows x.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Weighted Covariance Matrix — .wcov","text":"list two components: center: estimate center (mean) data. cov: estimated (weighted) covariance matrix.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Weighted Covariance Matrix — .wcov","text":"Simon Garnier, garnier@njit.edu","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/dot-wcov.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Weighted Covariance Matrix — .wcov","text":"","code":"m <- matrix(c(rnorm(500, 6), rnorm(500, 11, 3)), ncol = 2) w <- runif(500) wcec:::.wcov(m, w) #> $center #> [1] 6.079087 11.054456 #> #> $cov #> [,1] [,2] #> [1,] 1.104458 0.156673 #> [2,] 0.156673 8.448055 #>"},{"path":"https://swarm-lab.github.io/wcec/reference/four_Gaussians.html","id":null,"dir":"Reference","previous_headings":"","what":"Four Gaussian Clusters — four_Gaussians","title":"Four Gaussian Clusters — four_Gaussians","text":"Matrix 2-dimensional points forming four Gaussian clusters.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/four_Gaussians.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Four Gaussian Clusters — four_Gaussians","text":"","code":"data(four_Gaussians) plot(four_Gaussians, pch = 19)"},{"path":"https://swarm-lab.github.io/wcec/reference/three_Gaussians.html","id":null,"dir":"Reference","previous_headings":"","what":"Three Gaussian Clusters — three_Gaussians","title":"Three Gaussian Clusters — three_Gaussians","text":"Matrix 2-dimensional points forming three Gaussian clusters.","code":""},{"path":"https://swarm-lab.github.io/wcec/reference/three_Gaussians.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Three Gaussian Clusters — three_Gaussians","text":"","code":"data(three_Gaussians) plot(three_Gaussians, pch = 19)"},{"path":"https://swarm-lab.github.io/wcec/reference/wcec.html","id":null,"dir":"Reference","previous_headings":"","what":"wcec: ... — wcec","title":"wcec: ... — wcec","text":"wcec package provides ...","code":""},{"path":[]},{"path":[]},{"path":"https://swarm-lab.github.io/wcec/reference/wcec.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"wcec: ... — wcec","text":"Simon Garnier garnier@njit.edu Jason Graham jason.graham@scranton.edu Maintainer: Simon Garnier garnier@njit.edu","code":""}]