public class DistTriangular extends DistributionContinuous implements java.io.Serializable
| Constructor and Description |
|---|
DistTriangular(double min,
double mode,
double max)
Create a triangular distribution instance.
|
| Modifier and Type | Method and Description |
|---|---|
Distribution |
createUnregisteredCopy()
Create an unregistered copy of this distribution.
|
double |
getMax()
Get the distribution's max parameter (maximum outcome).
|
double |
getMin()
Get the distribution's min parameter (minimum outcome).
|
double |
getMode()
Get the distribution's mode parameter (modal outcome).
|
void |
setMax(double max)
Change (set) the max parameter of the distribution.
|
void |
setMin(double min)
Change (set) the min parameter of the distribution.
|
void |
setMode(double mode)
Change (set) the mode parameter of the distribution.
|
java.lang.String |
toString()
Custom toString implementation.
|
sampleDoublecreateRegisteredCopygetSampler, registerAccessInfo, registerSamplerpublic DistTriangular(double min,
double mode,
double max)
min - The minimum parameter.mode - The mode parameter.max - The maximum parameter.public void setMin(double min)
min - The new min parameter (minimum outcome).public double getMin()
public void setMode(double mode)
mode - The new mode parameter (modal outcome).public double getMode()
public void setMax(double max)
max - The new max parameter (maximum outcome).public double getMax()
public java.lang.String toString()
toString in class DistributionContinuous"Triangular(3.0, 4.0, 5.0)".public Distribution createUnregisteredCopy()
createUnregisteredCopy in class Distribution