|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--Reasoner.Distiller
Distills a set of MonteCarloRunSets created by the Reasoner into a set of slightly different interpetations, each of which will be rendered as its own Sandbox. Distillation serves two purposes:
Any number of Distillers can be run on the same aggregrate data for experimentation and comparison purposes. Distillation does not affect the raw source data.
Since distillation eliminates some interpretations by combining them if they are similar, there can never be more interpretations (or Sandboxes) than there are MonteCarloRunSets.
MonteCarloRunSet,
Reasoner,
Sandbox| Field Summary | |
private float |
COMPOSITE_OBJECT_TRANSPARENCY
|
private boolean |
ENABLE_VERBOSE_LOGGING
|
private java.lang.String |
m_depiction_name
|
private java.util.ArrayList |
m_monte_carlo_run_sets
|
private SemanticNetwork |
m_semantic_network
|
private double |
SIGMA_SCALE_FACTOR
|
| Constructor Summary | |
Distiller(java.lang.String depiction_name,
SemanticNetwork semantic_network)
Creates a new Distiller. |
|
| Method Summary | |
void |
addMonteCarloRunSet(MonteCarloRunSet monte_carlo_run_set)
Adds a MonteCarloRunSet to the collection to be distilled. |
void |
addMonteCarloRunSets(java.util.ArrayList monte_carlo_run_sets)
Adds a set of MonteCarloRunSets to the collection to be distilled. |
java.util.LinkedList |
distillDepiction(boolean return_all_otherwise_one,
boolean return_composite)
Performs a predefined distillation. |
java.util.LinkedList |
distillDepiction(boolean distill_by_position,
float max_position_sigma,
boolean distill_by_attitude,
float max_attitude_sigma,
boolean distill_by_dimensions,
float max_dimensions_sigma,
boolean return_all_otherwise_one,
boolean return_composite)
Distills the MonteCarloRunSets that have been added into a set of Sandboxes for rendering. |
void |
export(java.lang.String output_filename,
java.util.LinkedList object_set)
Exports to a file a text representation of the object inferences in the Monte Carlo run sets of this distiller. |
int |
getMonteCarloRunSetCount()
Returns the number of MonteCarloRunSets that have been added. |
java.util.ArrayList |
getMonteCarloRunSets()
Returns a list of the MonteCarloRunSets that have been added. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private SemanticNetwork m_semantic_network
private java.util.ArrayList m_monte_carlo_run_sets
private java.lang.String m_depiction_name
private final float COMPOSITE_OBJECT_TRANSPARENCY
private final boolean ENABLE_VERBOSE_LOGGING
private final double SIGMA_SCALE_FACTOR
| Constructor Detail |
public Distiller(java.lang.String depiction_name,
SemanticNetwork semantic_network)
depiction_name - - the depiction namesemantic_network - - the semantic network defining the source description| Method Detail |
public void addMonteCarloRunSet(MonteCarloRunSet monte_carlo_run_set)
monte_carlo_run_set - - the set to addpublic void addMonteCarloRunSets(java.util.ArrayList monte_carlo_run_sets)
monte_carlo_run_sets - - the set to add
public java.util.LinkedList distillDepiction(boolean return_all_otherwise_one,
boolean return_composite)
throws java.lang.Exception
return_all_otherwise_one - - whether to return all interpretations or onereturn_composite - - whether the composite interpretation of the aggregrate sets should be returned
java.lang.Exception - - if distillation fails for any reasonSandbox
public java.util.LinkedList distillDepiction(boolean distill_by_position,
float max_position_sigma,
boolean distill_by_attitude,
float max_attitude_sigma,
boolean distill_by_dimensions,
float max_dimensions_sigma,
boolean return_all_otherwise_one,
boolean return_composite)
throws java.lang.Exception
distill_by_position - - whether position deviation contributes to distillationmax_position_sigma - - the minimum sigma difference between object positions to spawn a new interpretation.
This applies only when distill_by_position is enableddistill_by_attitude - - whether attitude deviation contributes to distillationmax_attitude_sigma - - the minimum sigma difference between object attitudes to spawn a new interpretation.
This applies only when distill_by_attitude is enableddistill_by_dimensions - - whether dimensions deviation contribute to distillationmax_dimensions_sigma - - the minimum sigma difference between object dimensions to spawn a new interpretation.
This applies only when max_dimensions_sigma is enabledreturn_all_otherwise_one - - whether to return all interpretations or onereturn_composite - - whether the composite interpretation of the aggregrate sets should be returned
java.lang.Exception - - if distillation failsSandbox
public void export(java.lang.String output_filename,
java.util.LinkedList object_set)
throws java.lang.Exception
output_filename - - the fully qualified output filenameobject_set - - the distilled object set to export, or null to use the Monte Carlo run sets stored
in this distiller, which is equivalent to
this.export(output_filename, this.getMonteCarloRunSets())
java.lang.Exception - - if the export failspublic int getMonteCarloRunSetCount()
public java.util.ArrayList getMonteCarloRunSets()
MonteCarloRunSetpublic java.lang.String toString()
toString in class java.lang.ObjectSupport.toPrettyString(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||