mrfi() creates an object of class mrfi based on a distance
rule and optionally a list of relative positions. The argument max_norm and
norm_type can be used to automatically include all positions within a
"range" defined by the norm type chosen and distance using that norm.
A list of relative positions may also be included to specify sparse interaction structures, for example.
mrfi(max_norm = 1, norm_type = "1", positions = NULL)
| max_norm | a |
|---|---|
| norm_type | a |
| positions | a |
A mrfi object.
If a position in positions is already included due to the
max_norm and norm_type specification, the second ocurrence is ignored.
The same is valid for repeated or opposite positions in positions.
A paper with detailed description of the package can be found at https://arxiv.org/abs/2006.00383
mrfi(1)#> 2 interacting positions. #> rx ry #> 1 0 #> 0 1mrfi(2)#> 6 interacting positions. #> rx ry #> 1 0 #> 2 0 #> -1 1 #> 0 1 #> 1 1 ... and 1 more.mrfi(2, norm_type = "m")#> 12 interacting positions. #> rx ry #> 1 0 #> 2 0 #> -2 1 #> -1 1 #> 0 1 ... and 7 more.#> 4 interacting positions. #> rx ry #> 1 0 #> 0 1 #> 4 4 #> -4 4#> 3 interacting positions. #> rx ry #> 1 0 #> 0 1 #> 2 0