implement factory pattern

This commit is contained in:
Niclas
2026-08-14 18:03:39 +02:00
parent 37d9682e27
commit f3c6aac782
6 changed files with 495 additions and 23 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ if (requireNamespace("here", quietly = TRUE)) {
#' @param a A numeric vector of length *d* (coefficients).
#' Must be the same length as the number of columns of `X_matrix`.
#' @param phi A binary function `phi(x, y)` returning a numeric value.
#' It should be symmetric (`phi(x, y) == phi(y, x)`) and bounded in $[0,1]$.
#' It should be symmetric (`phi(x, y) == phi(y, x)`) and integrate to $1$ over
#' $[0,1]^2$.
#' @param rho_n A numeric scalar in $[0,1]$ that scales the graphon.
#' @param Fv A cumulative distribution function (CDF) used to transform the
#' linear predictor. Defaults to the standard normal CDF `pnorm`.