Description Usage Arguments Value Author(s) Examples
This functions provides a method to calculate the neighbourhood energy on the complete lattice grid, or at a single point within the provided lattice grid.
1 | energy_neighbourhood(x, position, neighbourhoods)
|
x |
the lattice grid for which the energy is required |
position |
the linear index of the node for which energy is required |
neighbourhoods |
the neighbourhoods associated with the lattice grid |
the neighbourhood energy for the lattice or the specific node
Kevin Brosnan (kevin.c.brosnan@gmail.com)
1 2 3 | y <- matrix(sample(c(-1, 1), size = 16, prob = c(0.6, 0.4), replace = TRUE), nrow = 4)
neigh <- neighbourhoods(x = y, order = 1, method = "Moore")
energy <- energy_neighbourhood(x = y, position = -1, neighbourhoods = neigh)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.