|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.studentmodel2.assessment.tbm.HypothesesContainer
public class HypothesesContainer
This Class contains a set of hypotheses
| Constructor Summary | |
|---|---|
HypothesesContainer()
Empty default constructor |
|
| Method Summary | |
|---|---|
void |
add(Hypothesis newHypothesis)
Add new hypothesis to the container |
void |
addMass(long atomsBitMask,
double beliefMass)
Add more mass to a certain belief (hypothesis) |
void |
addUncertainty(double mass,
int hypCnt)
Add uncertainty to the current hypothesis. |
void |
applyWeight(double weight)
Apply some weighting to a normalized hypothesis (Att: only call when container has already been normalized!!! |
HypothesesContainer |
deepcopy()
|
long |
getAtoms()
Return a long that has bits [0..n] set according to the set atoms |
List |
getHypotheses()
Get all contained hypotheses |
Hypothesis |
getHypothesis(long atoms)
get a specific hypothesis that these atoms set |
double |
getMinProbability()
Returns the minimal probability of any contained hypothesis |
boolean |
hasAtom(long atom)
See if any contained Hypothesis gives information about an atom, e.g. |
void |
normalize()
Normalize the belief masses/probabilities in this Collection |
void |
reduceProbabilities(double mass)
|
String |
toString()
Returns the bitmask of defined hypotheses and the list of contained hypotheses. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HypothesesContainer()
| Method Detail |
|---|
public void add(Hypothesis newHypothesis)
newHypothesis - - the new hypothesispublic List getHypotheses()
Hypothesispublic boolean hasAtom(long atom)
atom - - the longValue() of a competencyLevel
public double getMinProbability()
public void reduceProbabilities(double mass)
mass - - The mass by which the probability has to be reducedpublic long getAtoms()
public Hypothesis getHypothesis(long atoms)
atoms - - bitmask of set atoms
public void addMass(long atomsBitMask,
double beliefMass)
atomsBitMask - beliefMass - public void normalize()
public void applyWeight(double weight)
weight - - the weight to be applied
public void addUncertainty(double mass,
int hypCnt)
mass - - the amount of uncertainty to addhypCnt - - the amount of hypotheses possiblepublic HypothesesContainer deepcopy()
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||