C# Class SharpNeat.Network.NetworkDefinition

Concrete implementation of INetworkDefinition. This class represents network definitions independently of any other requirements, e.g. a NeatGenome is also an INetworkDefinition but with additional baggage. This class is useful for representing network definitions, e.g. when creating a network instance from a HyperNEAT substrate.
Inheritance: INetworkDefinition
Show file Open project: colgreen/sharpneat Class Usage Examples

Public Methods

Method Description
GetConnectivityData ( ) : NetworkConnectivityData

Gets NetworkConnectivityData for the network.

NetworkDefinition ( int inputNodeCount, int outputNodeCount, IActivationFunctionLibrary activationFnLib, NodeList nodeList, ConnectionList connectionList ) : System.Collections.Generic

Constructs with the provided input/output node count, activation function library, node and connection lists.

NetworkDefinition ( int inputNodeCount, int outputNodeCount, IActivationFunctionLibrary activationFnLib, NodeList nodeList, ConnectionList connectionList, bool isAcyclic ) : System.Collections.Generic

Constructs with the provided input/output node count, activation function library, node and connection lists.

PerformIntegrityCheck ( ) : bool

Performs an integrity check on the network definition. Returns true if OK.

Method Details

GetConnectivityData() public method

Gets NetworkConnectivityData for the network.
public GetConnectivityData ( ) : NetworkConnectivityData
return NetworkConnectivityData

NetworkDefinition() public method

Constructs with the provided input/output node count, activation function library, node and connection lists.
public NetworkDefinition ( int inputNodeCount, int outputNodeCount, IActivationFunctionLibrary activationFnLib, NodeList nodeList, ConnectionList connectionList ) : System.Collections.Generic
inputNodeCount int
outputNodeCount int
activationFnLib IActivationFunctionLibrary
nodeList NodeList
connectionList ConnectionList
return System.Collections.Generic

NetworkDefinition() public method

Constructs with the provided input/output node count, activation function library, node and connection lists.
public NetworkDefinition ( int inputNodeCount, int outputNodeCount, IActivationFunctionLibrary activationFnLib, NodeList nodeList, ConnectionList connectionList, bool isAcyclic ) : System.Collections.Generic
inputNodeCount int
outputNodeCount int
activationFnLib IActivationFunctionLibrary
nodeList NodeList
connectionList ConnectionList
isAcyclic bool
return System.Collections.Generic

PerformIntegrityCheck() public method

Performs an integrity check on the network definition. Returns true if OK.
public PerformIntegrityCheck ( ) : bool
return bool