edu::tum::cs::inference::GeneralSampledDistribution Class Reference

Inheritance diagram for edu::tum::cs::inference::GeneralSampledDistribution:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

generally usable representation of a distribution that can be written to a file. Any BasicSampledDistribution can be converted to this type of object.

Author:
jain

Definition at line 22 of file GeneralSampledDistribution.java.


Constructor & Destructor Documentation

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.


Member Function Documentation

static GeneralSampledDistribution edu::tum::cs::inference::GeneralSampledDistribution::fromFile ( File  f  )  throws Exception [inline, static]

reads a previously stored distribution from a file

Parameters:
s 
Returns:
Exceptions:
Exception 

Definition at line 69 of file GeneralSampledDistribution.java.

String [] edu::tum::cs::inference::GeneralSampledDistribution::getDomain ( int  idx  )  [inline, virtual]
Integer edu::tum::cs::inference::GeneralSampledDistribution::getNumSamples (  )  [inline, virtual]
int edu::tum::cs::inference::GeneralSampledDistribution::getVariableIndex ( String  name  )  [inline, virtual]
String edu::tum::cs::inference::GeneralSampledDistribution::getVariableName ( int  idx  )  [inline, virtual]
void edu::tum::cs::inference::GeneralSampledDistribution::write ( File  f  )  throws IOException [inline]

writes this object to a file

Parameters:
f 
Exceptions:
IOException 

Definition at line 53 of file GeneralSampledDistribution.java.


Member Data Documentation

Definition at line 25 of file GeneralSampledDistribution.java.

Definition at line 26 of file GeneralSampledDistribution.java.

Definition at line 24 of file GeneralSampledDistribution.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations


srldb
Author(s): Dominik Jain, Stefan Waldherr, Moritz Tenorth
autogenerated on Fri Jan 11 09:58:40 2013