@Beta public class NeuralParticle extends Object implements Serializable
Constructor and Description |
---|
NeuralParticle(int width,
int height,
int maxDistance,
RNG 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.
|
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, RNG rng)
public void populate(int quantity)
quantity
- the number of points to insertpublic 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 © 2012–2016. All rights reserved.