MOAL.data_structures.linear.array package¶
Submodules¶
MOAL.data_structures.linear.array.circular_buffer module¶
MOAL.data_structures.linear.array.control_table module¶
-
class
MOAL.data_structures.linear.array.control_table.ControlTableNaive(table1, table2)[source]¶ A control table is effectively any number of lists/arrays that allow mapping one set of items to another. In this way, their lengths must be the same.
A dictionary would be more appropriate in many cases, except when you want to decouple the input from the output, by using separate data structures to store each column of information.
-
__init__(table1, table2)¶
-
process(key)¶
-
MOAL.data_structures.linear.array.gap_buffer module¶
MOAL.data_structures.linear.array.hashed_array_tree module¶
MOAL.data_structures.linear.array.image_array module¶
-
class
MOAL.data_structures.linear.array.image_array.ImageArray[source]¶ Bases:
listUsing an array as a means to represent an image - a nested array of RGBA values.
-
__setitem__(key, pixel_data)¶
-
-
MOAL.data_structures.linear.array.image_array.random() → x in the interval [0, 1).¶
MOAL.data_structures.linear.array.linear_trees module¶
MOAL.data_structures.linear.array.sparse module¶
MOAL.data_structures.linear.array.suffix_arrays module¶
-
class
MOAL.data_structures.linear.array.suffix_arrays.InfixArray(strings=None)[source]¶ Bases:
MOAL.data_structures.linear.array.suffix_arrays.SuffixArrayThis is a weird experiment, not totally relevant.
-
class
MOAL.data_structures.linear.array.suffix_arrays.PrefixArray(strings=None)[source]¶ Bases:
MOAL.data_structures.linear.array.suffix_arrays.SuffixArray-
classmethod
make_substring(string)¶
-
classmethod