Skip to content

Commit 22d57a8

Browse files
RoryuOuYiyunZhuang
andauthored
Feature: Generalized GWR (#36)
* feature: ggwr basic interface * edit: rename ggwr to gwr_generalized, add pridict function with bugs --------- Co-authored-by: zyy <2711245442@qq.com>
1 parent d69d97a commit 22d57a8

10 files changed

Lines changed: 795 additions & 2 deletions

File tree

NAMESPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
S3method(coef,ggwrm)
34
S3method(coef,gtdrm)
45
S3method(coef,gwlcrm)
56
S3method(coef,gwrm)
@@ -9,13 +10,15 @@ S3method(fitted,gwlcrm)
910
S3method(fitted,gwrm)
1011
S3method(fitted,gwrmultiscalem)
1112
S3method(glyph.plot,gwpcam)
13+
S3method(plot,ggwrm)
1214
S3method(plot,gtdrm)
1315
S3method(plot,gwcorrm)
1416
S3method(plot,gwlcrm)
1517
S3method(plot,gwrm)
1618
S3method(plot,gwrmultiscalem)
1719
S3method(plot,modelselcritl)
1820
S3method(predict,gwrm)
21+
S3method(print,ggwrm)
1922
S3method(print,gtdrm)
2023
S3method(print,gwavgm)
2124
S3method(print,gwcorrm)
@@ -38,6 +41,7 @@ export(gwcorr_config)
3841
export(gwcorrelation)
3942
export(gwpca)
4043
export(gwr_basic)
44+
export(gwr_generalized)
4145
export(gwr_lcr)
4246
export(gwr_multiscale)
4347
export(mgwr_config)

R/RcppExports.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ gwr_basic_predict <- function(pcoords, x, y, coords, bw, adaptive, kernel, longl
2525
.Call(`_GWmodel3_gwr_basic_predict`, pcoords, x, y, coords, bw, adaptive, kernel, longlat, p, theta, intercept, parallel_type, parallel_arg, verbose)
2626
}
2727

28+
gwr_generalized_fit <- function(x, y, coords, family, bw, adaptive, kernel, longlat, p, theta, hatmatrix, intercept, optim_bw, optim_bw_criterion, parallel_type, parallel_arg) {
29+
.Call(`_GWmodel3_gwr_generalized_fit`, x, y, coords, family, bw, adaptive, kernel, longlat, p, theta, hatmatrix, intercept, optim_bw, optim_bw_criterion, parallel_type, parallel_arg)
30+
}
31+
32+
gwr_generalized_predict <- function(pcoords, x, y, coords, family, bw, adaptive, kernel, longlat, p, theta, hatmatrix, intercept, parallel_type, parallel_arg) {
33+
.Call(`_GWmodel3_gwr_generalized_predict`, pcoords, x, y, coords, family, bw, adaptive, kernel, longlat, p, theta, hatmatrix, intercept, parallel_type, parallel_arg)
34+
}
35+
2836
gwr_lcr_fit <- function(x, y, coords, bw, adaptive, kernel, longlat, p, theta, lambda, lambda_adjust, cn_thresh, intercept, hatmatrix, parallel_type, parallel_arg, optim_bw) {
2937
.Call(`_GWmodel3_gwr_lcr_fit`, x, y, coords, bw, adaptive, kernel, longlat, p, theta, lambda, lambda_adjust, cn_thresh, intercept, hatmatrix, parallel_type, parallel_arg, optim_bw)
3038
}

0 commit comments

Comments
 (0)