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

Function push

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

Source from the content-addressed store, hash-verified

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

Callers 1

chaos_machine.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected