gameanalysis.collect module¶
-
class
gameanalysis.collect.
BitSet
[source]¶ Bases:
object
Set of bitmasks
A bitmask is in the set if all of the true bits have been added
-
class
gameanalysis.collect.
DynamicArray
(item_shape, dtype=None, initial_room=8, grow_fraction=2)[source]¶ Bases:
object
A object with a backed array that also allows adding data
-
data
¶ A view of all of the data
-
-
class
gameanalysis.collect.
MixtureSet
(tolerance)[source]¶ Bases:
object
A set of mixtures
Elements are only kept if the norm of their difference is greater than the tolerance.
-
class
gameanalysis.collect.
WeightedSimilaritySet
(is_similar)[source]¶ Bases:
object
A set of non-similar elements prioritized by weight
Allows adding a bunch of weighted elements, and when iterated, only iterates over dissimilar elements with the lowest weights. Adding new elements that are similar to the existing set, but with higher weights won’t change the set returned.