Description Usage Arguments Details Value Author(s) References See Also Examples
fssi2d() function calculates the relative frequency distribution of isotropic clusters on 2D square lattice with Moore (1,d)-neighborhood.
1 2 |
n |
a sample size. |
x |
a linear dimension of 2D square percolation lattice. |
p0 |
a relative fraction |
p1 |
|
set |
a vector of linear indexes of a starting sites subset. |
all |
logical; if |
shape |
a vector with two shape parameters of beta-distributed random variables, weighting the percolation lattice sites. |
The percolation is simulated on 2D square lattice with uniformly weighted sites and the constant parameters p0 and p1.
The isotropic cluster is formed from the accessible sites connected with initial sites subset set.
Moore (1,d)-neighborhood on 2D square lattice consists of sites, at least one coordinate of which is different from the current site by one: e=c(e0,e1), where
e0=c(-1, 1, -x, x, -x^2, x^2);
e1=colSums(matrix(e0[c(1,3, 2,3, 1,4, 2,4)], nrow=2)).
Minkowski distance between sites a and b depends on the exponent d:
rhoM <- function(a, b, d=1)
if (is.infinite(d)) return(apply(abs(b-a), 2, max))
else return(apply(abs(b-a)^d, 2, sum)^(1/d)).
Minkowski distance for sites from e1 subset with the exponent d=1 is equal to rhoMe1=2.
Each element of the matrix frq is equal to the relative frequency with which the 2D square lattice site belongs to a cluster sample of size n.
rfq |
a 2D matrix of relative sampling frequencies for sites of the percolation lattice. |
Pavel V. Moskalev <moskalefff@gmail.com>
[1] Moskalev, P.V. Percolation modeling of porous structures. Moscow: URSS, 2018. 240 pp; in Russian.
[2] Moskalev, P.V. (2014) Estimates of threshold and strength of percolation clusters on square lattices with (1,d)-neighborhood. Computer Research and Modeling, Vol.6, No.3, pp.405–414; in Russian.
ssi2d, fssi3d, fssi20, fssi30, fssa2d, fssa3d
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.