View source: R/PAFit_oneshot.R
PAFit_oneshot | R Documentation |
This function estimates the attachment function A_k
from one snapshot.
PAFit_oneshot(net_object,
M = 10,
S = 5,
loop = 5,
G = 1000)
net_object |
an object of class |
M |
Integer. Number of simulated networks in each iteration. Default is |
S |
Integer. Number of iterations inside each loop. Default is |
loop |
Integer. Number of loops of the whole process. Default is |
G |
Integer. Number of bins for the PA function. Default is |
Outputs a PAFit_result
object.
Thong Pham thongphamthe@gmail.com
1. Pham, T., Sheridan, P. & Shimodaira, H. (2021). Non-parametric estimation of the preferential attachment function from one network snapshot. Journal of Complex Networks 9(5): cnab024. (\Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/comnet/cnab024")}).
## Not run:
library("PAFit")
net_1 <- generate_BA(N = 10000, alpha = 1) # true attachment exponent = 1.0
result_1 <- PAFit_oneshot(net_1)
print(result_1)
net_2 <- generate_BA(N = 10000, alpha = 0.5) # true attachment exponent = 0.5
result_2 <- PAFit_oneshot(net_2)
print(result_2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.