public class BinomialDistribution extends Distribution
Constructor and Description |
---|
BinomialDistribution(int numberOfTrials,
double probabilityOfSuccess)
Create a distribution
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getNumberOfTrials() |
double |
getProbabilityOfSuccess() |
int |
hashCode() |
void |
setProbabilityOfSuccess(double probabilityOfSuccess) |
java.lang.String |
toString() |
clone
public BinomialDistribution(int numberOfTrials, double probabilityOfSuccess)
numberOfTrials
- the number of trialsprobabilityOfSuccess
- the probability of successpublic double getProbabilityOfSuccess()
public void setProbabilityOfSuccess(double probabilityOfSuccess)
public int getNumberOfTrials()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object