@Beta public class NeuralParticle extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
NeuralParticle(int width,
int height,
int maxDistance,
IRNG rng) |
Modifier and Type | Method and Description |
---|---|
void |
add(Coord point)
Adds a single specific point to the distribution.
|
int[][] |
asIntMap(int scale)
Returns an integer mapping of the current distribution.
|
java.util.List<Coord> |
asList()
Returns a list of the current distribution.
|
Coord |
createPoint()
Creates a pip that falls within the required distance from the current
distribution.
|
void |
populate(int quantity)
Populates the field with given number of points.
|
public NeuralParticle(int width, int height, int maxDistance, IRNG rng)
public void populate(int quantity)
quantity
- the number of points to insertpublic java.util.List<Coord> asList()
public int[][] asIntMap(int scale)
scale
- the value that active points will holdpublic void add(Coord point)
point
- the Coord, also called a pip here, to insertpublic Coord createPoint()
Copyright © Eben Howard 2012–2022. All rights reserved.