org.neuroph.util
Class ConnectionFactory
- java.lang.Object
-
- org.neuroph.util.ConnectionFactory
-
public class ConnectionFactory extends java.lang.ObjectProvides methods to connect neurons by creating Connection objects.
-
-
Constructor Summary
Constructors Constructor and Description ConnectionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidcreateConnection(Neuron fromNeuron, Layer toLayer)Creates connectivity between specified neuron and all neurons in specified layerstatic voidcreateConnection(Neuron fromNeuron, Neuron toNeuron)Creates connection between two specified neuronsstatic voidcreateConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal)Creates connection between two specified neuronsstatic voidcreateConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal, int delay)static voidcreateConnection(Neuron fromNeuron, Neuron toNeuron, Weight weight)Creates connection between two specified neuronsstatic voidforwardConnect(Layer fromLayer, Layer toLayer)Creates forward connection pattern between specified layersstatic voidforwardConnect(Layer fromLayer, Layer toLayer, double weightVal)Creates forward connectivity pattern between the specified layersstatic voidfullConnect(Layer layer)Creates full connectivity within layer - each neuron with all other within the same layerstatic voidfullConnect(Layer layer, double weightVal)Creates full connectivity within layer - each neuron with all other within the same layer with the specified weight values for all conections.static voidfullConnect(Layer layer, double weightVal, int delay)Creates full connectivity within layer - each neuron with all other within the same layer with the specified weight and delay values for all conections.static voidfullConnect(Layer fromLayer, Layer toLayer)Creates full connectivity between the two specified layersstatic voidfullConnect(Layer fromLayer, Layer toLayer, boolean connectBiasNeuron)Creates full connectivity between the two specified layersstatic voidfullConnect(Layer fromLayer, Layer toLayer, double weightVal)Creates full connectivity between two specified layers with specified weight for all connections
-
-
-
Method Detail
-
createConnection
public static void createConnection(Neuron fromNeuron, Neuron toNeuron)
Creates connection between two specified neurons- Parameters:
fromNeuron- output neurontoNeuron- input neuron
-
createConnection
public static void createConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal)
Creates connection between two specified neurons- Parameters:
fromNeuron- neuron to connect (connection source)toNeuron- neuron to connect to (connection target)weightVal- connection weight value
-
createConnection
public static void createConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal, int delay)
-
createConnection
public static void createConnection(Neuron fromNeuron, Neuron toNeuron, Weight weight)
Creates connection between two specified neurons- Parameters:
fromNeuron- neuron to connect (connection source)toNeuron- neuron to connect to (connection target)weight- connection weight
-
createConnection
public static void createConnection(Neuron fromNeuron, Layer toLayer)
Creates connectivity between specified neuron and all neurons in specified layer- Parameters:
fromNeuron- neuron to connecttoLayer- layer to connect to
-
fullConnect
public static void fullConnect(Layer fromLayer, Layer toLayer)
Creates full connectivity between the two specified layers- Parameters:
fromLayer- layer to connecttoLayer- layer to connect to
-
fullConnect
public static void fullConnect(Layer fromLayer, Layer toLayer, boolean connectBiasNeuron)
Creates full connectivity between the two specified layers- Parameters:
fromLayer- layer to connecttoLayer- layer to connect to
-
fullConnect
public static void fullConnect(Layer fromLayer, Layer toLayer, double weightVal)
Creates full connectivity between two specified layers with specified weight for all connections- Parameters:
fromLayer- output layertoLayer- input layerweightVal- connection weight value
-
fullConnect
public static void fullConnect(Layer layer)
Creates full connectivity within layer - each neuron with all other within the same layer
-
fullConnect
public static void fullConnect(Layer layer, double weightVal)
Creates full connectivity within layer - each neuron with all other within the same layer with the specified weight values for all conections.
-
fullConnect
public static void fullConnect(Layer layer, double weightVal, int delay)
Creates full connectivity within layer - each neuron with all other within the same layer with the specified weight and delay values for all conections.
-
forwardConnect
public static void forwardConnect(Layer fromLayer, Layer toLayer, double weightVal)
Creates forward connectivity pattern between the specified layers- Parameters:
fromLayer- layer to connecttoLayer- layer to connect to
-
-
DMelt 3.0 © DataMelt by jWork.ORG