Reference
The simulation module
Simulator
__init__(name, low=0.0, high=1.0)
Create a new simulator
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
name of simulation |
required |
low |
float
|
lower bound |
0.0
|
high |
float
|
upper bound |
1.0
|
Examples:
>>> sim = Simulator(name="Scenario1", low=2.0, high=10.0)
simulate(n_samples=1)
Sample random numbers
Parameters:
Name | Type | Description | Default |
---|---|---|---|
n_samples |
int
|
number of samples |
1
|
Returns:
Type | Description |
---|---|
ndarray
|
|