Map
Map
Bases: _Generator_
This class is an implementation of Generator for maps generators.
Source code in phaseportrait/maps/map.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
|
__init__(portrait, dF, dimension, max_values, *, dF_args=None, initial_values=None, thermalization=0, **kargs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
portrait |
Object)
|
Class that uses the RungeKutta objects. |
required |
dF |
callable)
|
A dF type funcion. |
required |
dimension |
int)
|
Number of dimensions in which it calculates the next values. Must equal the amount of outputs the |
required |
max_values |
int)
|
Max number of values saved. |
required |
dF_args |
dict)
|
If necesary, must contain the kargs for the |
None
|
initial_values |
float, list, optional)
|
Initial set of conditions, by default None. If None, random initial conditions are aplied in the interval [0,1) for each coordinate. |
None
|
thermalization |
int, optional)
|
Thermalization steps before data is saved, by default None. If None, thermalization steps are set to 0. |
0
|
Source code in phaseportrait/maps/map.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
clear_values()
Clears the data arrays self.positions
.
Source code in phaseportrait/maps/map.py
82 83 84 85 86 |
|
instance_and_compute_all(portrait, dF, dimension, max_values, dF_args, initial_values, save_freq, thermalization, **kargs)
classmethod
Creates an instance of phase-portrait.maps.Map. Computes all the data requested and returns the instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
portrait |
Object)
|
Class that uses the RungeKutta objects. |
required |
dF |
callable)
|
A dF type funcion. |
required |
dimension |
int)
|
Number of dimensions in which it calculates the next values. Must equal the amount of outputs the |
required |
max_values |
int)
|
Max number of values saved. |
required |
dF_args |
dict)
|
If necesary, must contain the kargs for the |
required |
initial_values |
float, list, optional)
|
Initial set of conditions, by default None. If None, random initial conditions are aplied in the interval [0,1) for each coordinat |
required |
save_freq |
int, optional, by default 1)
|
Number of values computed before saving them. |
required |
thermalization |
int, optional)
|
Thermalization steps before data is saved, by default None. If None, thermalization steps are set to 0. |
required |
limit_cycle_check |
int, bool, optional, by default False)
|
Whenever to check it there os a limit cycle in the data. |
required |
delta |
float, optional, by default 0.01)
|
If |
required |
Returns:
Type | Description |
---|---|
phaseportrait.maps.Map
|
The instance with all the data requested |
Source code in phaseportrait/maps/map.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
save(i)
Saves self.position
in the attribute self.positions
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
i |
int)
|
Index in which the data is saved. |
required |
Source code in phaseportrait/maps/map.py
68 69 70 71 72 73 74 75 76 77 78 79 80 |
|