Neat-Ex v1.3.0 Ann.Connection

A module for storing connections between nodes in an ANN.

Summary

Functions

Convinience function for creating a list of Ann.Conns from a list of {input, output, weight}, {id, input, output, weight}, or {id, input, output, weight, enabled} tuples

Deprecated. Cantor’s pairing function. Given positive integers (a, b), a unique number is returned such that no other integers can produce the same number

Functions

createFromList(list)

Convinience function for creating a list of Ann.Conns from a list of {input, output, weight}, {id, input, output, weight}, or {id, input, output, weight, enabled} tuples.

genCantorId(a, b)

Deprecated. Cantor’s pairing function. Given positive integers (a, b), a unique number is returned such that no other integers can produce the same number.

new(input, output, weight \\ 0.1 * (2 * :rand.uniform() - 1), enabled \\ true)

Creates a new Ann.Conn.