Skip to content

Commit 934ce73

Browse files
committed
wissi stress inversion implemented
1 parent cf2cc6a commit 934ce73

18 files changed

Lines changed: 1239 additions & 11 deletions

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ export(slip_inversion_hansen_boot)
385385
export(slip_inversion_michael)
386386
export(slip_inversion_misfit)
387387
export(slip_inversion_simple)
388+
export(slip_inversion_wissi)
388389
export(slip_inversion_yamaji_sato)
389390
export(slip_inversion_yamaji_sato_boot)
390391
export(slip_tendency)
@@ -439,6 +440,7 @@ export(watson_MLE)
439440
export(watson_inference)
440441
export(wellner)
441442
export(wellner_inference)
443+
export(wissi_polyphase)
442444
export(woodcock_plot)
443445
import(data.table)
444446
import(ggplot2)

R/stress_inversion.R

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,27 @@
6767
#' res_yamaji <- slip_inversion(x, method = "yamaji")
6868
#'
6969
#' res_hansen <- slip_inversion(x, method = "hansen", type = "6d")
70+
#'
71+
#' res_wissi <- slip_inversion(x, method = 'wissi')
7072
#'
7173
#' stereoplot(guides = FALSE)
7274
#' fault_plot(x, col = "gray80")
7375
#' points(res_michael$principal_axes, pch = 1:3, col = 2)
7476
#' points(res_angelier$principal_axes, pch = 1:3, col = 3)
7577
#' points(res_yamaji$principal_axes, pch = 1:3, col = 4)
7678
#' points(res_hansen$principal_axes, pch = 1:3, col = 5)
79+
#' points(res_wissi$principal_axes, pch = 1:3, col = 6)
7780
#' legend("topleft",
7881
#' pch = 1,
79-
#' legend = c("Michael (1984)", "Angelier (1990)", "Yamaji & Sato (2006)", "Hansen (2013)"),
80-
#' col = 2:5
82+
#' legend = c("Michael (1984)", "Angelier (1990)", "Yamaji & Sato (2006)", "Hansen (2013)", "WISSI"),
83+
#' col = 2:6
8184
#' )
8285
#' legend("bottomright",
8386
#' pch = 1:3,
8487
#' legend = c("S1", "S2", "S3")
8588
#' )
8689
#' }))
87-
slip_inversion <- function(x, method = c("michael", "angelier", "hansen", "yamaji"), ...) {
90+
slip_inversion <- function(x, method = c("michael", "angelier", "hansen", "yamaji", "wissi"), ...) {
8891
method <- match.arg(method)
8992

9093
if (method == "angelier") {
@@ -93,6 +96,8 @@ slip_inversion <- function(x, method = c("michael", "angelier", "hansen", "yamaj
9396
slip_inversion_michael(x, ...)
9497
} else if(method == "yamaji") {
9598
slip_inversion_yamaji_sato(x, ...)
99+
} else if(method == "wissi"){
100+
slip_inversion_wissi(x, ...)
96101
} else {
97102
slip_inversion_hansen(x, ...)
98103
}

0 commit comments

Comments
 (0)