orbithunter.OrbitKS._populate_state¶
-
OrbitKS.
_populate_state
(**kwargs)[source]¶ Initialize a set of random spatiotemporal Fourier modes
- Parameters
- **kwargs
- tscaleint
“Mean” for temporal spectrum modulation
- xscaleint
“Mean” for spatial spectrum modulation
- xvarfloat
“Variance” for temporal spectrum modulation
- tvarfloat
“Variance”for spatial spectrum modulation
- seedint
Value to seed random number generator with.
- Returns
- self :
OrbitKS whose state has been modified to be a set of random Fourier modes.
Notes
These are the initial condition generators that I find the most useful. If a different method is desired, simply pass the array as ‘state’ variable to __init__.
By initializing the shape parameters and orbit parameters, the other properties get initialized, so they can be referenced in what follows (). I am unsure whether or not this is bad practice but they could be replaced by the corresponding tuples. The reason why this is avoided is so this function generalizes to subclasses.