C# Class Encog.Engine.Util.EngineArray

Simple array utilities for Encog.
Afficher le fichier Open project: encog/encog-silverlight-core

Méthodes publiques

Méthode Description
AllocateBool2D ( int rows, int cols ) : bool[][]

Allocate a 2D array of bools.

AllocateDouble2D ( int rows, int cols ) : double[][]

Allocate a 2D array of doubles.

ArrayCopy ( double input ) : double[]

Copy a double array.

ArrayCopy ( double source ) : double[][]

Copy a 2d array.

ArrayCopy ( int input ) : int[]

Copy an int array.

ArrayCopy ( double src, double dst ) : void

Completely copy one array into another.

ArrayCopy ( double source, float target ) : void

Copy a double array to a float array.

ArrayCopy ( double source, int sourceIndex, double output, int targetIndex, int size ) : void

Copy an array of doubles.

ArrayCopy ( float source, double target ) : void

Copy a float array to a double array.

ArrayCopy ( int src, int dst ) : void

Completely copy one array into another.

Fill ( double target, int value ) : void

Fill the array with the specified value.

Fill ( float target, int value ) : void

Fill the array with the specified value.

FindStringInArray ( String search, String searchFor ) : int

Search for a string in an array.

ListToDouble ( IList list ) : double[]

Convert the collection to an array list of doubles.

VectorProduct ( double a, double b ) : double

Calculate the product of two vectors (a scalar value).

Private Methods

Méthode Description
Fill ( double p, double value ) : void

Fill the specified array with the specified value.

Method Details

AllocateBool2D() public static méthode

Allocate a 2D array of bools.
public static AllocateBool2D ( int rows, int cols ) : bool[][]
rows int The number of rows.
cols int The number of columns.
Résultat bool[][]

AllocateDouble2D() public static méthode

Allocate a 2D array of doubles.
public static AllocateDouble2D ( int rows, int cols ) : double[][]
rows int The number of rows.
cols int The number of columns.
Résultat double[][]

ArrayCopy() public static méthode

Copy a double array.
public static ArrayCopy ( double input ) : double[]
input double The array to copy.
Résultat double[]

ArrayCopy() public static méthode

Copy a 2d array.
public static ArrayCopy ( double source ) : double[][]
source double The source.
Résultat double[][]

ArrayCopy() public static méthode

Copy an int array.
public static ArrayCopy ( int input ) : int[]
input int The array to copy.
Résultat int[]

ArrayCopy() public static méthode

Completely copy one array into another.
public static ArrayCopy ( double src, double dst ) : void
src double Source array.
dst double Destination array.
Résultat void

ArrayCopy() public static méthode

Copy a double array to a float array.
public static ArrayCopy ( double source, float target ) : void
source double The double array.
target float The float array.
Résultat void

ArrayCopy() public static méthode

Copy an array of doubles.
public static ArrayCopy ( double source, int sourceIndex, double output, int targetIndex, int size ) : void
source double The source array.
sourceIndex int The source index.
output double The output array.
targetIndex int The output index.
size int The size to copy.
Résultat void

ArrayCopy() public static méthode

Copy a float array to a double array.
public static ArrayCopy ( float source, double target ) : void
source float The double array.
target double The float array.
Résultat void

ArrayCopy() public static méthode

Completely copy one array into another.
public static ArrayCopy ( int src, int dst ) : void
src int Source array.
dst int Destination array.
Résultat void

Fill() public static méthode

Fill the array with the specified value.
public static Fill ( double target, int value ) : void
target double The array to fill.
value int The value to fill.
Résultat void

Fill() public static méthode

Fill the array with the specified value.
public static Fill ( float target, int value ) : void
target float The array to fill.
value int The value to fill.
Résultat void

FindStringInArray() public static méthode

Search for a string in an array.
public static FindStringInArray ( String search, String searchFor ) : int
search String Where to search.
searchFor String What we are looking for.
Résultat int

ListToDouble() public static méthode

Convert the collection to an array list of doubles.
public static ListToDouble ( IList list ) : double[]
list IList The list to convert.
Résultat double[]

VectorProduct() public static méthode

Calculate the product of two vectors (a scalar value).
public static VectorProduct ( double a, double b ) : double
a double First vector to multiply.
b double Second vector to multiply.
Résultat double