|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectLearningDataOld
public class LearningDataOld
A structure that contains a list of evidence mappings.
Constructor Summary | |
---|---|
LearningDataOld(Collection vars)
Creates an empty LearningDataOld list. |
Method Summary | |
---|---|
boolean |
add(Map record)
Adds an evidence record to the list. |
static String |
canonical(Object o)
|
FiniteVariable |
getDebugVariable()
|
boolean |
isComplete()
Determines if every evidence map in list contains an instantiation of every variable. |
boolean |
isComplete(Set vars)
Determines if every evidence map in list contains an instantiation of every variable in subset "vars". |
boolean |
isEmpty()
Determines if list is empty. |
Iterator |
iterator()
Returns an iterator over the evidence in the list. |
int |
numRecords()
Returns the number of evidence Maps in list. |
void |
readData(File infile,
BeliefNetwork bn)
Reads data from a Hugin-style plain text "case" file. |
int |
removeIncomplete()
Removes all records that do not contain a complete instantiation of the variables. |
int |
removeIncomplete(Set vars)
Removes all records that do not contain a complete instantiation of the subset "vars". |
String |
valuesToString(Map map)
|
Set |
variables()
Returns the set of variables. |
void |
writeData(File outfile)
Writes data to a Hugin-style plain text "case" file. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LearningDataOld(Collection vars)
vars
- The set of FiniteVariables that the data will contain
evidence about.Method Detail |
---|
public String valuesToString(Map map)
public static String canonical(Object o)
public FiniteVariable getDebugVariable()
public void readData(File infile, BeliefNetwork bn) throws IOException, RuntimeException
IOException
RuntimeException
public void writeData(File outfile) throws IOException
IOException
public Set variables()
public Iterator iterator()
public boolean add(Map record)
public int numRecords()
public boolean isEmpty()
public boolean isComplete()
public boolean isComplete(Set vars)
vars
- A subset of LearningDataOld's variables.public int removeIncomplete()
public int removeIncomplete(Set vars)
vars
- A subset of LearningDataOld's variables.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |