public class NeuralMap extends java.lang.Object implements VectorQuantizer
NeuralGas
,
GrowingNeuralGas
,
BIRCH
,
Serialized FormOUTLIER
Constructor and Description |
---|
NeuralMap(double r,
double epsBest,
double epsNeighbor,
int edgeLifetime,
double beta)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear(double eps)
Removes staled neurons and the edges beyond lifetime.
|
Neuron[] |
neurons()
Returns the set of neurons.
|
double[] |
quantize(double[] x)
Quantize a new observation.
|
void |
update(double[] x)
Update the codebook with a new observation.
|
public NeuralMap(double r, double epsBest, double epsNeighbor, int edgeLifetime, double beta)
r
- the distance threshold to activate the nearest neuron of a signal.epsBest
- the learning rate to update activated neuron.epsNeighbor
- the learning rate to update neighbors of activated neuron.edgeLifetime
- the maximum age of edges.beta
- decrease the freshness of all neurons by multiply them with beta.public void update(double[] x)
VectorQuantizer
update
in interface VectorQuantizer
public Neuron[] neurons()
public void clear(double eps)
eps
- the freshness threshold of neurons. It should
be a small value (e.g. 1E-7).public double[] quantize(double[] x)
VectorQuantizer
quantize
in interface VectorQuantizer
x
- a new observation.