Package weka.gui.boundaryvisualizer
Class RemoteResult
java.lang.Object
weka.gui.boundaryvisualizer.RemoteResult
- All Implemented Interfaces:
Serializable
Class that encapsulates a result (and progress info) for part of a
distributed boundary visualization. The result of a sub-task is the
probabilities necessary to display one row of the final visualization.
- Since:
- 1.0
- Version:
- $Revision: 10222 $
- Author:
- Mark Hall
- See Also:
-
Constructor Summary
ConstructorDescriptionRemoteResult
(int rowNum, int rowLength) Creates a newRemoteResult
instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the progress for this rowdouble[][]
Return the probability distributions for this row in the visualizationvoid
setLocationProbs
(int index, double[] distribution) Store the classifier's distribution for a particular pixel in the visualizationvoid
setPercentCompleted
(int pc) Set the progress for this row so far
-
Constructor Details
-
RemoteResult
public RemoteResult(int rowNum, int rowLength) Creates a newRemoteResult
instance.- Parameters:
rowNum
- the row numberrowLength
- the number of pixels in the row
-
-
Method Details
-
setLocationProbs
public void setLocationProbs(int index, double[] distribution) Store the classifier's distribution for a particular pixel in the visualization- Parameters:
index
- the pixeldistribution
- the probability distribution from the classifier
-
getProbabilities
public double[][] getProbabilities()Return the probability distributions for this row in the visualization- Returns:
- the probability distributions
-
setPercentCompleted
public void setPercentCompleted(int pc) Set the progress for this row so far- Parameters:
pc
- a percent completed value
-
getPercentCompleted
public int getPercentCompleted()Return the progress for this row- Returns:
- a percent completed value
-