Data structure containing all information to generate a random value.
More...
|
| __init__ (self, **kwargs) |
| Costructor.
|
|
| empty (cls) |
| Factory method to create an invalid empty object.
|
|
| is_set (self) |
| Query whether the object is valid or not.
|
|
| set (self, Mode mode, float offset, float amp, int period=100, float err=0.5) |
| Set all parameters of random value generations with different mode and make the object valid.
|
|
| set_clock (self, **kwargs) |
| Set all random generator parameter with the clock distribution.
|
|
| set_cos (self, **kwargs) |
| Set all random generator parameter with the cosine distribution.
|
|
| set_uniform (self, **kwargs) |
| Set all random generator parameter with the uniform distribution.
|
|
| unset (self) |
| Make the object invalid.
|
|
◆ __init__()
neuland_add_random_hitpar.ParValueSet.__init__ |
( |
| self, |
|
|
** | kwargs ) |
◆ empty()
neuland_add_random_hitpar.ParValueSet.empty |
( |
| cls | ) |
|
◆ is_set()
neuland_add_random_hitpar.ParValueSet.is_set |
( |
| self | ) |
|
◆ set()
neuland_add_random_hitpar.ParValueSet.set |
( |
| self, |
|
|
Mode | mode, |
|
|
float | offset, |
|
|
float | amp, |
|
|
int | period = 100, |
|
|
float | err = 0.5 ) |
- Parameters
-
mode | Set a mode value (enumerator from Mode). |
offset | Set a offset value |
amp | Set a amplitude value |
period | Set period value if Mode.COSINE is chosen |
err | Set an error value |
Definition at line 52 of file neuland_add_random_hitpar.py.
◆ set_clock()
neuland_add_random_hitpar.ParValueSet.set_clock |
( |
| self, |
|
|
** | kwargs ) |
◆ set_cos()
neuland_add_random_hitpar.ParValueSet.set_cos |
( |
| self, |
|
|
** | kwargs ) |
◆ set_uniform()
neuland_add_random_hitpar.ParValueSet.set_uniform |
( |
| self, |
|
|
** | kwargs ) |
◆ unset()
neuland_add_random_hitpar.ParValueSet.unset |
( |
| self | ) |
|
◆ amp
neuland_add_random_hitpar.ParValueSet.amp = amp |
◆ err
neuland_add_random_hitpar.ParValueSet.err = err |
◆ mode
neuland_add_random_hitpar.ParValueSet.mode = mode |
◆ offset
neuland_add_random_hitpar.ParValueSet.offset = offset |
◆ period
neuland_add_random_hitpar.ParValueSet.period = period |
The documentation for this class was generated from the following file: