Public Member Functions | |
GeneralSampledDistribution (double[][] values, Double Z, String[] varNames, String[][] domains) throws Exception | |
String[] | getDomain (int idx) |
Integer | getNumSamples () |
int | getVariableIndex (String name) |
String | getVariableName (int idx) |
void | write (File f) throws IOException |
Static Public Member Functions | |
static GeneralSampledDistribution | fromFile (File f) throws Exception |
Protected Attributes | |
String[][] | domains |
HashMap< String, Integer > | varName2Index |
String[] | varNames |
generally usable representation of a distribution that can be written to a file. Any BasicSampledDistribution can be converted to this type of object.
Definition at line 22 of file GeneralSampledDistribution.java.
edu::tum::cs::inference::GeneralSampledDistribution::GeneralSampledDistribution | ( | double | values[][], | |
Double | Z, | |||
String[] | varNames, | |||
String | domains[][] | |||
) | throws Exception [inline] |
Definition at line 28 of file GeneralSampledDistribution.java.
static GeneralSampledDistribution edu::tum::cs::inference::GeneralSampledDistribution::fromFile | ( | File | f | ) | throws Exception [inline, static] |
reads a previously stored distribution from a file
s |
Exception |
Definition at line 69 of file GeneralSampledDistribution.java.
String [] edu::tum::cs::inference::GeneralSampledDistribution::getDomain | ( | int | idx | ) | [inline, virtual] |
Implements edu::tum::cs::inference::BasicSampledDistribution.
Definition at line 39 of file GeneralSampledDistribution.java.
Integer edu::tum::cs::inference::GeneralSampledDistribution::getNumSamples | ( | ) | [inline, virtual] |
Implements edu::tum::cs::inference::BasicSampledDistribution.
Definition at line 85 of file GeneralSampledDistribution.java.
int edu::tum::cs::inference::GeneralSampledDistribution::getVariableIndex | ( | String | name | ) | [inline, virtual] |
Implements edu::tum::cs::inference::BasicSampledDistribution.
Definition at line 80 of file GeneralSampledDistribution.java.
String edu::tum::cs::inference::GeneralSampledDistribution::getVariableName | ( | int | idx | ) | [inline, virtual] |
Implements edu::tum::cs::inference::BasicSampledDistribution.
Definition at line 44 of file GeneralSampledDistribution.java.
void edu::tum::cs::inference::GeneralSampledDistribution::write | ( | File | f | ) | throws IOException [inline] |
writes this object to a file
f |
IOException |
Definition at line 53 of file GeneralSampledDistribution.java.
String [][] edu::tum::cs::inference::GeneralSampledDistribution::domains [protected] |
Definition at line 25 of file GeneralSampledDistribution.java.
HashMap<String,Integer> edu::tum::cs::inference::GeneralSampledDistribution::varName2Index [protected] |
Definition at line 26 of file GeneralSampledDistribution.java.
String [] edu::tum::cs::inference::GeneralSampledDistribution::varNames [protected] |
Definition at line 24 of file GeneralSampledDistribution.java.