org.activemath.studentmodel2.assessment.tbm
Class Hypothesis

java.lang.Object
  extended by org.activemath.studentmodel2.assessment.tbm.Hypothesis

public class Hypothesis
extends Object

This class represents a hypothesis about a set of atoms and it's probability. Atoms are: 0: user is at competencyLevel NO_COMPETENCY 1: I 2: II 3: III 4: IV Probability is a value in [0,1]: How strong do we believe this hypothesis is correct: (0 - no belief, 1 - absolutely sure)


Constructor Summary
Hypothesis()
           
 
Method Summary
 Hypothesis deepcopy()
           
 long getAtoms()
           
 int getCardinality()
          Returns the amount of atoms in the hypothesis
 double getProbability()
           
 boolean hasAtom(long cl)
          Does this hypothesis say something about atom cl?
 void setAtoms(long atoms)
           
 void setProbability(double probability)
           
 String toString()
          Returns the bitmask of hypotheses set and the probability set for this hypothesis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hypothesis

public Hypothesis()
Method Detail

getAtoms

public long getAtoms()
Returns:
the atoms

setAtoms

public void setAtoms(long atoms)
Parameters:
atoms - the atoms to set

getProbability

public double getProbability()
Returns:
the probability

setProbability

public void setProbability(double probability)
Parameters:
probability - the probability to set

hasAtom

public boolean hasAtom(long cl)
Does this hypothesis say something about atom cl?

Parameters:
cl - - the competencyLevel it should say something about
Returns:
- true if hypothesis is (also) about cl, false otherwise

getCardinality

public int getCardinality()
Returns the amount of atoms in the hypothesis

Returns:
The cardinality (amount of atoms in hypothesis) of the hypothesis

deepcopy

public Hypothesis deepcopy()

toString

public String toString()
Returns the bitmask of hypotheses set and the probability set for this hypothesis

Overrides:
toString in class Object