C# Class xpidea.neuro.net.patterns.PatternsCollection

Inheritance: NeuroObjectCollection
Datei anzeigen Open project: AlexCherkasov/Neuro.NET Class Usage Examples

Public Methods

Method Description
Add ( Pattern value ) : int

Adds a with the specified value to the xpidea.neuro.net.patterns.PatternsCollection .

AddRange ( Pattern value ) : void

Copies the elements of an array to the end of the xpidea.neuro.net.patterns.PatternsCollection .

AddRange ( PatternsCollection value ) : void

Adds the contents of another xpidea.neuro.net.patterns.PatternsCollection to the end of the collection.

Contains ( Pattern value ) : bool

Gets a value indicating whether the xpidea.neuro.net.patterns.PatternsCollection contains the specified .

CopyTo ( Pattern array, int index ) : void

Copies the xpidea.neuro.net.patterns.PatternsCollection values to a one-dimensional System.Array instance at the specified index.

GetEnumerator ( ) : CustomPatternEnumerator

Returns an enumerator that can iterate through the xpidea.neuro.net.patterns.PatternsCollection .

IndexOf ( Pattern value ) : int

Returns the index of a in the xpidea.neuro.net.patterns.PatternsCollection .

Insert ( int index, Pattern value ) : void

Inserts a xpidea.neuro.net.patterns.Pattern into the xpidea.neuro.net.patterns.PatternsCollection at the specified index.

PatternsCollection ( ) : System

Initializes a new instance of xpidea.neuro.net.patterns.PatternsCollection.

PatternsCollection ( Pattern value ) : System

Initializes a new instance of xpidea.neuro.net.patterns.PatternsCollection containing any array of objects.

PatternsCollection ( PatternsCollection value ) : System

Initializes a new instance of xpidea.neuro.net.patterns.PatternsCollection based on another xpidea.neuro.net.patterns.PatternsCollection.

PatternsCollection ( int patternsCount, int inputsCount, int outputsCount ) : System

Constructor. Creates new cllection of the patterns.

PatternsCollection ( string fileName ) : System

Constructor. Creates the collection and loads content from a file.

Remove ( Pattern value ) : void

Removes a specific xpidea.neuro.net.patterns.Pattern from the xpidea.neuro.net.patterns.PatternsCollection .

this ( int index ) : Pattern

Represents the entry at the specified index of the .

Protected Methods

Method Description
CreateContainigObject ( ) : NeuroObject

Overridden.Creates new xpidea.neuro.net.patterns.Pattern object.

Method Details

Add() public method

Adds a with the specified value to the xpidea.neuro.net.patterns.PatternsCollection .

public Add ( Pattern value ) : int
value Pattern The to add.
return int

AddRange() public method

Copies the elements of an array to the end of the xpidea.neuro.net.patterns.PatternsCollection .

public AddRange ( Pattern value ) : void
value Pattern /// An array of type containing the objects to add to the collection. ///
return void

AddRange() public method

Adds the contents of another xpidea.neuro.net.patterns.PatternsCollection to the end of the collection.

public AddRange ( PatternsCollection value ) : void
value PatternsCollection /// A containing the objects to add to the collection. ///
return void

Contains() public method

Gets a value indicating whether the xpidea.neuro.net.patterns.PatternsCollection contains the specified .

public Contains ( Pattern value ) : bool
value Pattern The to locate.
return bool

CopyTo() public method

Copies the xpidea.neuro.net.patterns.PatternsCollection values to a one-dimensional System.Array instance at the specified index.

/// is multidimensional. /// -or- /// /// The number of elements in the is greater than the /// available space between and the end of . /// /// is . /// is less than /// 's lowbound. ///
public CopyTo ( Pattern array, int index ) : void
array Pattern /// /// The one-dimensional that is the destination of the values copied from /// . /// ///
index int The index in where copying begins.
return void

CreateContainigObject() protected method

Overridden.Creates new xpidea.neuro.net.patterns.Pattern object.
protected CreateContainigObject ( ) : NeuroObject
return NeuroObject

GetEnumerator() public method

Returns an enumerator that can iterate through the xpidea.neuro.net.patterns.PatternsCollection .

public GetEnumerator ( ) : CustomPatternEnumerator
return CustomPatternEnumerator

IndexOf() public method

Returns the index of a in the xpidea.neuro.net.patterns.PatternsCollection .

public IndexOf ( Pattern value ) : int
value Pattern The to locate.
return int

Insert() public method

Inserts a xpidea.neuro.net.patterns.Pattern into the xpidea.neuro.net.patterns.PatternsCollection at the specified index.

public Insert ( int index, Pattern value ) : void
index int The zero-based index where should be inserted.
value Pattern
return void

PatternsCollection() public method

Initializes a new instance of xpidea.neuro.net.patterns.PatternsCollection.

public PatternsCollection ( ) : System
return System

PatternsCollection() public method

Initializes a new instance of xpidea.neuro.net.patterns.PatternsCollection containing any array of objects.

public PatternsCollection ( Pattern value ) : System
value Pattern /// A array of objects with which to intialize the collection ///
return System

PatternsCollection() public method

Initializes a new instance of xpidea.neuro.net.patterns.PatternsCollection based on another xpidea.neuro.net.patterns.PatternsCollection.

public PatternsCollection ( PatternsCollection value ) : System
value PatternsCollection /// A from which the contents are copied ///
return System

PatternsCollection() public method

Constructor. Creates new cllection of the patterns.
public PatternsCollection ( int patternsCount, int inputsCount, int outputsCount ) : System
patternsCount int Numeber of patterns in this collection.
inputsCount int Number of inputs in each pattern.
outputsCount int Number of outputs in each pattern.
return System

PatternsCollection() public method

Constructor. Creates the collection and loads content from a file.
public PatternsCollection ( string fileName ) : System
fileName string Name of the file to load data from.
return System

Remove() public method

Removes a specific xpidea.neuro.net.patterns.Pattern from the xpidea.neuro.net.patterns.PatternsCollection .

is not found in the Collection.
public Remove ( Pattern value ) : void
value Pattern /// The to remove from the /// . ///
return void

this() public method

Represents the entry at the specified index of the .

/// is outside the valid range of indexes /// for the collection. ///
public this ( int index ) : Pattern
index int /// The zero-based index of the entry to locate in the collection. ///
return Pattern