Table of Contents

Class ArrayUtils

Namespace
NeuralNetworks.Core
Assembly
NeuralNetworks.dll
public class ArrayUtils
Inheritance
ArrayUtils
Inherited Members

Methods

ConvertToSpan(Array)

public static Span<float> ConvertToSpan(Array array)

Parameters

array Array

Returns

Span<float>

CreateRange(int, int, int, int, float, float)

public static float[,,,] CreateRange(int dim1, int dim2, int dim3, int dim4, float from, float to)

Parameters

dim1 int
dim2 int
dim3 int
dim4 int
from float
to float

Returns

float[,,,]

CreateRange(int, int, float, float)

public static float[,] CreateRange(int rows, int columns, float from, float to)

Parameters

rows int
columns int
from float
to float

Returns

float[,]

LoadCsv(string, int)

public static float[,] LoadCsv(string filePath, int skipHeaderLines = 0)

Parameters

filePath string
skipHeaderLines int

Returns

float[,]

LoadSv(string, char, int)

public static float[,] LoadSv(string filePath, char separator, int skipHeaderLines)

Parameters

filePath string
separator char
skipHeaderLines int

Returns

float[,]

LoadTsv(string, int)

public static float[,] LoadTsv(string filePath, int skipHeaderLines = 0)

Parameters

filePath string
skipHeaderLines int

Returns

float[,]

PermuteData(float[,,,], float[,], Random)

Permutes the data in the input arrays x and y using the provided random number generator.

public static (float[,,,] xPermuted, float[,] yPermuted) PermuteData(float[,,,] x, float[,] y, Random random)

Parameters

x float[,,,]
y float[,]
random Random

Returns

(float[,,,] xPermuted, float[,] yPermuted)

Remarks

This method is the quickest way to permute data for 4D input arrays.

PermuteData(float[,], float[,], Random)

public static (float[,] xPermuted, float[,] yPermuted) PermuteData(float[,] x, float[,] y, Random random)

Parameters

x float[,]
y float[,]
random Random

Returns

(float[,] Set1, float[,] Set2)

StandardizeColumns(float, params List<float[,]>)

public static void StandardizeColumns(float minStdDev, params List<float[,]> sets)

Parameters

minStdDev float
sets List<float[,]>