Neighorboods
CircularNeighborhoodBuilder
Bases: DistanceNeighborhoodBuilder
A semantic class for generating Circular neighborhoods in any structure.
Source code in pylattica/structures/square_grid/neighborhoods.py
69 70 |
|
MooreNbHoodBuilder
Bases: MotifNeighborhoodBuilder
A helper class for generating Moore type neighborhoods in square structures.
Source code in pylattica/structures/square_grid/neighborhoods.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
__init__(size=1, dim=2)
Constructs the MooreNbHoodBuilder
Parameters
int, optional
The size of the neighborhood, by default 1
int, optional
The dimension of the structures to which this builder will apply, by default 2
Source code in pylattica/structures/square_grid/neighborhoods.py
55 56 57 58 59 60 61 62 63 64 65 66 |
|
PseudoHexagonalNeighborhoodBuilder3D
Bases: StochasticNeighborhoodBuilder
A helper class for generating Pseudohexagonal neighborhoods in 3D.
Source code in pylattica/structures/square_grid/neighborhoods.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
PseudoPentagonalNeighborhoodBuilder
Bases: StochasticNeighborhoodBuilder
A helper class for generating Pseudopentagonal neighborhoods in 2D.
Source code in pylattica/structures/square_grid/neighborhoods.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
|
VonNeumannNbHood2DBuilder
Bases: MotifNeighborhoodBuilder
A helper class for generating von Neumann type neighborhoods in square 2D structures.
Source code in pylattica/structures/square_grid/neighborhoods.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
__init__(size=1)
Constructs the VonNeumannNbHood2DBuilder.
Parameters
int, optional
The size of the neighborhood, the traditional von Neumann neighborhood would have a size of 1
Source code in pylattica/structures/square_grid/neighborhoods.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
VonNeumannNbHood3DBuilder
Bases: MotifNeighborhoodBuilder
A helper class for generating von Neumann type neighborhoods in square 3D structures.
Source code in pylattica/structures/square_grid/neighborhoods.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
__init__(size)
Constructs the VonNeumannNbHood3D Builder
Parameters
int
The size of the neighborhood.
Source code in pylattica/structures/square_grid/neighborhoods.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|