C# Класс Encog.Engine.Util.EngineArray

Simple array utilities for Encog.
Показать файл Открыть проект

Открытые методы

Метод Описание
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).

Приватные методы

Метод Описание
Fill ( double p, double value ) : void

Fill the specified array with the specified value.

Описание методов

AllocateBool2D() публичный статический Метод

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.
Результат bool[][]

AllocateDouble2D() публичный статический Метод

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.
Результат double[][]

ArrayCopy() публичный статический Метод

Copy a double array.
public static ArrayCopy ( double input ) : double[]
input double The array to copy.
Результат double[]

ArrayCopy() публичный статический Метод

Copy a 2d array.
public static ArrayCopy ( double source ) : double[][]
source double The source.
Результат double[][]

ArrayCopy() публичный статический Метод

Copy an int array.
public static ArrayCopy ( int input ) : int[]
input int The array to copy.
Результат int[]

ArrayCopy() публичный статический Метод

Completely copy one array into another.
public static ArrayCopy ( double src, double dst ) : void
src double Source array.
dst double Destination array.
Результат void

ArrayCopy() публичный статический Метод

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.
Результат void

ArrayCopy() публичный статический Метод

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.
Результат void

ArrayCopy() публичный статический Метод

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.
Результат void

ArrayCopy() публичный статический Метод

Completely copy one array into another.
public static ArrayCopy ( int src, int dst ) : void
src int Source array.
dst int Destination array.
Результат void

Fill() публичный статический Метод

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.
Результат void

Fill() публичный статический Метод

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.
Результат void

FindStringInArray() публичный статический Метод

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.
Результат int

ListToDouble() публичный статический Метод

Convert the collection to an array list of doubles.
public static ListToDouble ( IList list ) : double[]
list IList The list to convert.
Результат double[]

VectorProduct() публичный статический Метод

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.
Результат double