Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beta4 ¶
type Beta4 struct {
// contains filtered or unexported fields
}
Beta4 implements the four-parameter Beta distribution, which is like the two-parameter Beta distribution with ranges between the min and max instead of between 0 and 1.
func (Beta4) Mode ¶
Mode returns the mode of the Beta4 distribution.
Mode returns NaN if either alpha or beta parameters are less than or equal to 1 as a special case.
func (Beta4) NumParameters ¶
NumParameters returns the number of parameters in the Beta4 distribution.
type PERT ¶
type PERT struct {
// contains filtered or unexported fields
}
PERT represents a PERT distribution, which is a four parameter Beta distribution described by the parameters min, max, and mode, as well as the requirement that the mean = (max + 4 * mod + min) / 6. (https://en.wikipedia.org/wiki/PERT_distribution)
func NewPERT ¶
NewPERT constructs a new PERT distribution using the given min, max, and mode. Constraints are min < max and min ≤ mode ≤ max.
func (PERT) NumParameters ¶
NumParameters returns the number of parameters in the PERT distribution.