|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.bnj.bbn.BBNContinuousValue
Field Summary | |
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 | |
BBNContinuousValue()
|
|
BBNContinuousValue(double newMean,
double newVariance)
|
|
BBNContinuousValue(double newLowerBound,
double newUpperBound,
int type)
|
Method Summary | |
java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object d)
|
boolean |
equals(java.lang.Object o)
|
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 |
getVariance()
Returns the variance. |
int |
hashCode()
Same as toString().hashCode() |
void |
setMean(double mean)
Sets the mean. |
void |
setType(int type)
Sets the type. |
void |
setVariance(double variance)
Sets the variance. |
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 UNIFORM
public static final int GAUSSIAN
public static final int NORMAL
public static final int POISSON
public static final java.lang.String[] typeString
protected double mean
protected double variance
protected int type
Constructor Detail |
public BBNContinuousValue()
public BBNContinuousValue(double newMean, double newVariance)
public BBNContinuousValue(double newLowerBound, double newUpperBound, int type)
Method Detail |
public double getLowerBound()
public double getUpperBound()
public boolean contains(java.lang.Object d)
contains
in interface BBNValue
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()
clone
in interface BBNValue
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 set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |