|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.util.NeuralNetworkCODEC
public class NeuralNetworkCODEC
A CODEC encodes and decodes neural networks, much like the more standard definition of a CODEC encodes and decodes audio/video. This CODEC can encode a neural network to an array of doubles. It can also decode this array of doubles back into a neural network. This is very useful for both simulated annealing and genetic algorithms.
Method Summary | |
---|---|
static void |
array2network(double[] array,
NeuralNetwork network)
Decode a network from an array. |
static int |
determineArraySize(NeuralNetwork network)
Determine the array size for the given neural network. |
static void |
network2array(NeuralNetwork network,
double[] array)
Encode a network to an array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void network2array(NeuralNetwork network, double[] array)
network
- The network to encode.public static void array2network(double[] array, NeuralNetwork network)
array
- The array used to decode.network
- The network to decode into.public static int determineArraySize(NeuralNetwork network)
network
- The neural network to determine for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |