C# Class xpidea.neuro.net.bam.BidirectionalAssociativeMemorySystem

Implements the system of BAM networks.
Inheritance: BidirectionalAssociativeMemoryNetwork
Show file Open project: AlexCherkasov/Neuro.NET Class Usage Examples

Protected Properties

Property Type Description
best BidirectionalAssociativeMemoryNetwork
bestError double
data xpidea.neuro.net.patterns.Pattern
networks xpidea.neuro.net.bam.BidirectionalAssociativeMemoryNetwork[]
networksCount int
orthogonalBAMEnergy double

Public Methods

Method Description
BidirectionalAssociativeMemorySystem ( int aInputNodesCount, int aOutputNodesCount ) : System

Creates the BAM system.

Learn ( ) : void

Overridden.Teaches the system.

Load ( BinaryReader binaryReader ) : void

Overridden.Loads the BAM system data from a binary stream.

Run ( ) : void

Overridden.Runs the system.

Save ( BinaryWriter binaryWriter ) : void

Overridden.Stores BAM system data in a binary stream.

SetValues ( int index, double value ) : void

Overridden.Stores node values in the xpidea.neuro.net.bam.BidirectionalAssociativeMemorySystem.data field.

SetValuesFromPattern ( Pattern pattern ) : void

Overridden.Sets input and output values from the pattern.

value ( int index ) : double

Overridden.Node value by index from the best network.

Protected Methods

Method Description
CreateNetwork ( ) : void

Overridden.Initializes network data after construction.

GetNetworkType ( ) : NeuralNetworkType

Overridden.Returns xpidea.neuro.net.NeuralNetworkType.nntBAMSystem for BAM system.

GetNodeError ( ) : double

Overridden.Returns the best error.

GetOutputNode ( int index ) : NeuroNode

Overridden.Retrieves an output node by its index.

LoadInputs ( ) : void

Overridden.Loads input data to the system from the the nodes attached to input.

Private Methods

Method Description
Create ( int aInputNodesCount, int aOutputNodesCount ) : void

Method Details

BidirectionalAssociativeMemorySystem() public method

Creates the BAM system.
public BidirectionalAssociativeMemorySystem ( int aInputNodesCount, int aOutputNodesCount ) : System
aInputNodesCount int Number of nodes in input layer.
aOutputNodesCount int Number of nodes in output layer.
return System

CreateNetwork() protected method

Overridden.Initializes network data after construction.
protected CreateNetwork ( ) : void
return void

GetNetworkType() protected method

Overridden.Returns xpidea.neuro.net.NeuralNetworkType.nntBAMSystem for BAM system.
protected GetNetworkType ( ) : NeuralNetworkType
return NeuralNetworkType

GetNodeError() protected method

Overridden.Returns the best error.
protected GetNodeError ( ) : double
return double

GetOutputNode() protected method

Overridden.Retrieves an output node by its index.
protected GetOutputNode ( int index ) : NeuroNode
index int Node index.
return NeuroNode

Learn() public method

Overridden.Teaches the system.
public Learn ( ) : void
return void

Load() public method

Overridden.Loads the BAM system data from a binary stream.
public Load ( BinaryReader binaryReader ) : void
binaryReader System.IO.BinaryReader Binary stream reader.
return void

LoadInputs() protected method

Overridden.Loads input data to the system from the the nodes attached to input.
protected LoadInputs ( ) : void
return void

Run() public method

Overridden.Runs the system.
public Run ( ) : void
return void

Save() public method

Overridden.Stores BAM system data in a binary stream.
public Save ( BinaryWriter binaryWriter ) : void
binaryWriter System.IO.BinaryWriter Binary stream writer.
return void

SetValues() public method

Overridden.Stores node values in the xpidea.neuro.net.bam.BidirectionalAssociativeMemorySystem.data field.
public SetValues ( int index, double value ) : void
index int Node index.
value double Node value.
return void

SetValuesFromPattern() public method

Overridden.Sets input and output values from the pattern.
public SetValuesFromPattern ( Pattern pattern ) : void
pattern xpidea.neuro.net.patterns.Pattern
return void

value() public method

Overridden.Node value by index from the best network.
public value ( int index ) : double
index int Node index.
return double

Property Details

best protected property

The network having the minimum error.
protected BidirectionalAssociativeMemoryNetwork,xpidea.neuro.net.bam best
return BidirectionalAssociativeMemoryNetwork

bestError protected property

Best error.
protected double bestError
return double

data protected property

Stores the pattern.
protected Pattern,xpidea.neuro.net.patterns data
return xpidea.neuro.net.patterns.Pattern

networks protected property

Array of BAM networks.
protected BidirectionalAssociativeMemoryNetwork[],xpidea.neuro.net.bam networks
return xpidea.neuro.net.bam.BidirectionalAssociativeMemoryNetwork[]

networksCount protected property

Stores networks count in the system.
protected int networksCount
return int

orthogonalBAMEnergy protected property

Orthogonal network energy.
protected double orthogonalBAMEnergy
return double