Annex v0.2.1 Annex.Data.List1D View Source

The Annex.Data.List is the most basic Annex.Data.

Link to this section Summary

Functions

Calculates the dot product which is the sum of element-wise multiplication of two enumerables.

Calculates the average of a 1D list.

Generates a list of n floats between -1.0 and 1.0.

Turns a list of floats into floats between 0.0 and 1.0 at their respective ratio.

Turns a list of floats into their proportions.

Link to this section Types

Link to this section Functions

Calculates the dot product which is the sum of element-wise multiplication of two enumerables.

Link to this macro

is_list1D(data) View Source (macro)

Calculates the average of a 1D list.

Link to this function

new_random(n) View Source
new_random(pos_integer()) :: t()

Generates a list of n floats between -1.0 and 1.0.

Link to this function

normalize(data) View Source
normalize(t()) :: t()

Turns a list of floats into floats between 0.0 and 1.0 at their respective ratio.

Link to this function

proportions(data) View Source
proportions(t()) :: t()

Turns a list of floats into their proportions.

The sum of the output should be approximately 1.0.

Link to this function

subtract(a, b) View Source
subtract(t(), t()) :: t()