Annex v0.2.0 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 type
t()
View Source
t()
View Source
t() :: [float(), ...]
t() :: [float(), ...]
Link to this section Functions
Link to this function
dot(a, b) View Source
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)
Link to this function
mean(items) View Source
Calculates the average of a 1D list.
Link to this function
mean(list, _) View Source
Link to this function
new_random(n)
View Source
new_random(n)
View Source
new_random(pos_integer()) :: t()
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
Turns a list of floats into floats between 0.0 and 1.0 at their respective ratio.
Link to this function
ones(n)
View Source
ones(n)
View Source
ones(pos_integer()) :: t()
ones(pos_integer()) :: t()
Link to this function
proportions(data) View Source
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
Link to this function
transpose(data)
View Source
transpose(data)
View Source
transpose(t()) :: Annex.Data.List2D.t()
transpose(t()) :: Annex.Data.List2D.t()