Introduction¶
Hello.
-
enumerate
(sequence[, start=0])¶ - Return an iterator that yields tuples of an index and an item of the
sequence. (And so on.)
The enumerate()
function can be used for …
Standard¶
-
class
sds.standard.
Agent
(active=False, hyp=None)¶ Represents an agent, contains only an activity and a hypothesis, most of the time if activity is falsy then the hypothesis can be undefined.
-
class
sds.standard.
Cluster
(hyp, agents, size)¶ -
property
agents
¶ Alias for field number 1
-
property
hyp
¶ Alias for field number 0
-
property
size
¶ Alias for field number 2
-
property
-
sds.standard.
DH_uniform
(hypotheses, rng)¶ Uniformly random hypothesis generation
-
sds.standard.
H_fixed
(iterations)¶ Makes a function for halting after a fixed number of iterations
-
class
sds.standard.
Swarm
(agent_count=None, swarm=None, AgentClass=<class 'sds.standard.Agent'>)¶
-
sds.standard.
TM_uniform
(microtests, rng)¶ Uniformly random microtest selection
-
sds.standard.
T_boolean
(TM)¶ Boolean testing
Variants¶
-
sds.variants.
DN_gauss
(mean, sigma, rng)¶ Add noise from a gaussian distribution to hypothesis transmission
-
sds.variants.
DN_normal
(rng)¶ Add noise from a normal gaussian distribution to hypothesis transmission
-
sds.variants.
H_largest_cluster_threshold
(swarm, threshold)¶ Makes a function for halting once the largest cluster activity is over a fixed threshold
-
sds.variants.
H_threshold
(swarm, threshold)¶ Makes a function for halting once the global activity is over a fixed threshold