org.simnet.util
Class ConnectNets

java.lang.Object
  extended by org.simnet.util.ConnectNets

public final class ConnectNets
extends Object

ConnectNets provides utilities for connecting the nodes of networks together.


Method Summary
static double[][] getWeights(Network src, Network tar)
          Returns a matrix representation of the connections between two subnetworks.
static void oneWayFull(Network container, Network src, Network tar)
          Connect every neuron in the source network to every neuron in the target network.
static void oneWayOneOne(Network container, Network src, Network tar)
          Connect every neurons in source and target network 1-1.
static void setConnections(Network src, double[][] w)
          Set the weights of an existing simbrain network to those specified.
static void setConnections(Network src, Network tar, double[][] w)
          Set the weights connecting specified networks to values in a double matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setConnections

public static void setConnections(Network src,
                                  Network tar,
                                  double[][] w)
Set the weights connecting specified networks to values in a double matrix.

Parameters:
src - the source network whose outgoing weights need to be changed.
tar - the target network whose incoming weights (from src) need to be changed.
w - the new weight values for the network.

setConnections

public static void setConnections(Network src,
                                  double[][] w)
Set the weights of an existing simbrain network to those specified.

Parameters:
src - the network whose weights need to be changed.
w - the new weight values for the network.

oneWayFull

public static void oneWayFull(Network container,
                              Network src,
                              Network tar)
Connect every neuron in the source network to every neuron in the target network.

Parameters:
container - the network which contains the src and target subnetworks.
src - the source network
tar - the target network

oneWayOneOne

public static void oneWayOneOne(Network container,
                                Network src,
                                Network tar)
Connect every neurons in source and target network 1-1.

Parameters:
container - the network which contains the src and target subnetworks.
src - the source network
tar - the target network

getWeights

public static double[][] getWeights(Network src,
                                    Network tar)
Returns a matrix representation of the connections between two subnetworks.

Parameters:
src - the source network
tar - the target network
Returns:
a 2-d matrix of weight strengths