MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / push

Function push

hashes/chaos_machine.py:18–44  ·  view source on GitHub ↗
(seed)

Source from the content-addressed store, hash-verified

16machine_time = 0
17
18def push(seed):
19 global buffer_space, params_space, machine_time, \
20 K, m, t
21
22 # Choosing Dynamical Systems (All)
23 for key, value in enumerate(buffer_space):
24 # Evolution Parameter
25 e = float(seed / value)
26
27 # Control Theory: Orbit Change
28 value = (buffer_space[(key + 1) % m] + e) % 1
29
30 # Control Theory: Trajectory Change
31 r = (params_space[key] + e) % 1 + 3
32
33 # Modification (Transition Function) - Jumps
34 buffer_space[key] = \
35 round(float(r * value * (1 - value)), 10)
36 params_space[key] = \
37 r # Saving to Parameters Space
38
39 # Logistic Map
40 assert max(buffer_space) < 1
41 assert max(params_space) < 4
42
43 # Machine Time
44 machine_time += 1
45
46def pull():
47 global buffer_space, params_space, machine_time, \

Callers 1

chaos_machine.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected