Generates a sample of the Beta distribution.
Name | Type | Description |
p | double | the lower shape parameter > 0 |
q | double | the upper shape parameter > 0 |
min | double | the minimum x value |
max | double | the maximum x value |
Type | Description |
double | the generated sample |
Generates a sample of the Beta distribution with min set to 0 and max set to 1. Is equivalent to beta(p, q, 0, 1).
Name | Type | Description |
p | double | the lower shape parameter > 0 |
q | double | the upper shape parameter > 0 |
Type | Description |
double | the generated sample |
Generates a sample of the Beta distribution using the specified random number generator.
Name | Type | Description |
p | double | the lower shape parameter > 0 |
q | double | the shape factor (positive integer) |
min | double | the minimum x value |
max | double | the maximum x value |
r | java.util.Random | the random number generator |
Type | Description |
double | the generated sample |