edu.ucla.belief.learn
Class Simulator

Object
  extended by Simulator
All Implemented Interfaces:
ProgressMonitorable

public class Simulator
extends Object
implements ProgressMonitorable

Since:
20030306
Author:
keith cascio

Nested Class Summary
static interface Simulator.SimulationListener
           
 
Field Summary
static double DOUBLE_DEFAULT_FRACTION_MISSING_VALUES
           
static double DOUBLE_FRACTION_MISSING_CEILING
           
static double DOUBLE_FRACTION_MISSING_FLOOR
           
static boolean FLAG_VERBOSE
           
static int INT_DEFAULT_NUM_CASES
           
static int INT_NUM_CASES_CEILING
           
static int INT_NUM_CASES_FLOOR
           
static int INT_NUM_FILES_CEILING
           
static int INT_NUM_FILES_DEFAULT
           
static int INT_NUM_FILES_FLOOR
           
 
Constructor Summary
Simulator(BeliefNetwork bn)
           
 
Method Summary
 ProgressMonitorable[] decompose()
          interface ProgressMonitorable
 String getDescription()
          interface ProgressMonitorable
 String getNote()
          interface ProgressMonitorable
 int getProgress()
          interface ProgressMonitorable
 int getProgressMax()
          interface ProgressMonitorable
 boolean isFinished()
          interface ProgressMonitorable
 LearningData simulate()
           
 LearningData simulate(int numcases, double fractionmissing)
           
 LearningData[] simulate(int numcases, double fractionmissing, int repetitions, Simulator.SimulationListener listener)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_VERBOSE

public static boolean FLAG_VERBOSE

INT_NUM_FILES_DEFAULT

public static final int INT_NUM_FILES_DEFAULT
Since:
20070205
See Also:
Constant Field Values

INT_NUM_FILES_FLOOR

public static final int INT_NUM_FILES_FLOOR
Since:
20070205
See Also:
Constant Field Values

INT_NUM_FILES_CEILING

public static final int INT_NUM_FILES_CEILING
Since:
20070205
See Also:
Constant Field Values

INT_DEFAULT_NUM_CASES

public static final int INT_DEFAULT_NUM_CASES
Since:
20070205
See Also:
Constant Field Values

INT_NUM_CASES_FLOOR

public static final int INT_NUM_CASES_FLOOR
Since:
20070205
See Also:
Constant Field Values

INT_NUM_CASES_CEILING

public static final int INT_NUM_CASES_CEILING
Since:
20070205
See Also:
Constant Field Values

DOUBLE_DEFAULT_FRACTION_MISSING_VALUES

public static final double DOUBLE_DEFAULT_FRACTION_MISSING_VALUES
See Also:
Constant Field Values

DOUBLE_FRACTION_MISSING_FLOOR

public static final double DOUBLE_FRACTION_MISSING_FLOOR
See Also:
Constant Field Values

DOUBLE_FRACTION_MISSING_CEILING

public static final double DOUBLE_FRACTION_MISSING_CEILING
See Also:
Constant Field Values
Constructor Detail

Simulator

public Simulator(BeliefNetwork bn)
Method Detail

simulate

public LearningData[] simulate(int numcases,
                               double fractionmissing,
                               int repetitions,
                               Simulator.SimulationListener listener)
                        throws StateNotFoundException
Throws:
StateNotFoundException
Since:
20070205

simulate

public LearningData simulate()
                      throws StateNotFoundException
Throws:
StateNotFoundException

simulate

public LearningData simulate(int numcases,
                             double fractionmissing)
                      throws StateNotFoundException
Throws:
StateNotFoundException

getProgress

public int getProgress()
interface ProgressMonitorable

Specified by:
getProgress in interface ProgressMonitorable

getProgressMax

public int getProgressMax()
interface ProgressMonitorable

Specified by:
getProgressMax in interface ProgressMonitorable

isFinished

public boolean isFinished()
interface ProgressMonitorable

Specified by:
isFinished in interface ProgressMonitorable

getNote

public String getNote()
interface ProgressMonitorable

Specified by:
getNote in interface ProgressMonitorable

decompose

public ProgressMonitorable[] decompose()
interface ProgressMonitorable

Specified by:
decompose in interface ProgressMonitorable

getDescription

public String getDescription()
interface ProgressMonitorable

Specified by:
getDescription in interface ProgressMonitorable


Copyright 2010 UCLA Automated Reasoning Group