|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ksu.cis.bnj.bbn.BBNPDF
Conditional Probability Function wrapper
Field Summary | |
static int |
CONSTANT
|
static int |
GAUSSIAN
|
protected double |
mean
|
static int |
NORMAL
|
static int |
POISSON
|
protected int |
type
|
static java.lang.String[] |
typeString
|
static int |
UNIFORM
|
protected double |
variance
|
Constructor Summary | |
BBNPDF()
|
|
BBNPDF(double v)
|
|
BBNPDF(double newMean,
double newVariance)
|
|
BBNPDF(double v1,
double v2,
int type)
|
Method Summary | |
void |
add(BBNPDF arg)
|
java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object d)
|
void |
divide(BBNPDF arg)
|
boolean |
equals(java.lang.Object o)
|
double |
evaluate(java.util.Hashtable q)
|
double |
generateValue()
Generate a value out of the continuous value |
double |
getLowerBound()
Returns the lowerBound. |
double |
getMean()
Returns the mean. |
int |
getType()
Returns the type. |
double |
getUpperBound()
Returns the upperBound. |
double |
getValue()
Returns the value. |
double |
getVariance()
Returns the variance. |
int |
hashCode()
Same as toString().hashCode() |
void |
multiply(BBNPDF arg)
|
void |
setMean(double mean)
Sets the mean. |
void |
setType(int type)
Sets the type. |
void |
setValue(double value)
Sets the value. |
void |
setVariance(double variance)
Sets the variance. |
void |
subtract(BBNPDF arg)
|
void |
toConstant(double p)
|
java.lang.String |
toString()
Standard toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CONSTANT
public static final int UNIFORM
public static final int NORMAL
public static final int GAUSSIAN
public static final int POISSON
public static final java.lang.String[] typeString
protected double mean
protected double variance
protected int type
Constructor Detail |
public BBNPDF()
public BBNPDF(double v)
public BBNPDF(double newMean, double newVariance)
public BBNPDF(double v1, double v2, int type)
Method Detail |
public double getLowerBound()
public double getUpperBound()
public boolean contains(java.lang.Object d)
public double generateValue()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
Object.toString()
public int hashCode()
Object.hashCode()
public java.lang.Object clone()
public int getType()
public void setType(int type)
type
- The type to setpublic double getMean()
public double getVariance()
public void setMean(double mean)
mean
- The mean to setpublic void setVariance(double variance)
variance
- The variance to setpublic double getValue()
public void setValue(double value)
value
- The value to setpublic double evaluate(java.util.Hashtable q)
public void toConstant(double p)
public void multiply(BBNPDF arg)
public void divide(BBNPDF arg)
public void add(BBNPDF arg)
public void subtract(BBNPDF arg)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |