C# Class SharpNeat.Decoders.HyperNeat.NodeSetMapping

Describes a mapping between nodesets. Packages an INodeSetMappingFunction with indexes into a list of node sets that identify the source and target nodesets for the mapping.
Exibir arquivo Open project: colgreen/sharpneat

Public Methods

Method Description
Create ( int srcNodeSetIdx, int tgtNodeSetIdx, INodeSetMappingFunction mappingFn ) : NodeSetMapping

Creates a NodeSet from the provided source and target nodeset indexes and mapping function.

Create ( int srcNodeSetIdx, int tgtNodeSetIdx, double maximumConnectionDistance ) : NodeSetMapping

Creates a NodeSet from the provided source and target nodeset indexes and maximum connection distance for mappings/connections.

Create ( int srcNodeSetIdx, int tgtNodeSetIdx, double maximumConnectionDistance, bool allowLocalRecurrentConnections ) : NodeSetMapping

Creates a NodeSet from the provided source and target nodeset indexes, maximum connection distance for mappings/connections and a flag defining if local recurrent connections should be created when mapping between nodes in the same nodeset.

GenerateConnections ( List nodeSetList ) : IEnumerable

Generates the connections defined by the mapping.

GetConnectionCountHint ( List nodeSetList ) : int

Returns an estimate/hint for the number of connections that would be created by the mapping.

NodeSetMapping ( int srcNodeSetIdx, int tgtNodeSetIdx, INodeSetMappingFunction mappingFn ) : System.Collections.Generic

Constructs with the provided source and target nodeset indexes and mapping function to apply between those sets.

Method Details

Create() public static method

Creates a NodeSet from the provided source and target nodeset indexes and mapping function.
public static Create ( int srcNodeSetIdx, int tgtNodeSetIdx, INodeSetMappingFunction mappingFn ) : NodeSetMapping
srcNodeSetIdx int
tgtNodeSetIdx int
mappingFn INodeSetMappingFunction
return NodeSetMapping

Create() public static method

Creates a NodeSet from the provided source and target nodeset indexes and maximum connection distance for mappings/connections.
public static Create ( int srcNodeSetIdx, int tgtNodeSetIdx, double maximumConnectionDistance ) : NodeSetMapping
srcNodeSetIdx int
tgtNodeSetIdx int
maximumConnectionDistance double
return NodeSetMapping

Create() public static method

Creates a NodeSet from the provided source and target nodeset indexes, maximum connection distance for mappings/connections and a flag defining if local recurrent connections should be created when mapping between nodes in the same nodeset.
public static Create ( int srcNodeSetIdx, int tgtNodeSetIdx, double maximumConnectionDistance, bool allowLocalRecurrentConnections ) : NodeSetMapping
srcNodeSetIdx int
tgtNodeSetIdx int
maximumConnectionDistance double
allowLocalRecurrentConnections bool
return NodeSetMapping

GenerateConnections() public method

Generates the connections defined by the mapping.
public GenerateConnections ( List nodeSetList ) : IEnumerable
nodeSetList List
return IEnumerable

GetConnectionCountHint() public method

Returns an estimate/hint for the number of connections that would be created by the mapping.
public GetConnectionCountHint ( List nodeSetList ) : int
nodeSetList List
return int

NodeSetMapping() public method

Constructs with the provided source and target nodeset indexes and mapping function to apply between those sets.
public NodeSetMapping ( int srcNodeSetIdx, int tgtNodeSetIdx, INodeSetMappingFunction mappingFn ) : System.Collections.Generic
srcNodeSetIdx int
tgtNodeSetIdx int
mappingFn INodeSetMappingFunction
return System.Collections.Generic