C# Class SharpNeat.Genomes.Neat.ConnectionGene

A gene that represents a single connection between neurons in NEAT.
Inheritance: INetworkConnection
Mostra file Open project: colgreen/sharpneat Class Usage Examples

Public Methods

Method Description
ConnectionGene ( ConnectionGene copyFrom ) : SharpNeat.Network

Copy constructor.

ConnectionGene ( uint innovationId, uint sourceNodeId, uint targetNodeId, double weight ) : SharpNeat.Network

Construct a new ConnectionGene with the specified source and target neurons and connection weight.

CreateCopy ( ) : ConnectionGene

Creates a copy of the current gene. Virtual method that can be overridden by sub-types.

Method Details

ConnectionGene() public method

Copy constructor.
public ConnectionGene ( ConnectionGene copyFrom ) : SharpNeat.Network
copyFrom ConnectionGene
return SharpNeat.Network

ConnectionGene() public method

Construct a new ConnectionGene with the specified source and target neurons and connection weight.
public ConnectionGene ( uint innovationId, uint sourceNodeId, uint targetNodeId, double weight ) : SharpNeat.Network
innovationId uint
sourceNodeId uint
targetNodeId uint
weight double
return SharpNeat.Network

CreateCopy() public method

Creates a copy of the current gene. Virtual method that can be overridden by sub-types.
public CreateCopy ( ) : ConnectionGene
return ConnectionGene