weka.gui.boundaryvisualizer
Class RemoteResult

java.lang.Object
  extended byweka.gui.boundaryvisualizer.RemoteResult
All Implemented Interfaces:
java.io.Serializable

public class RemoteResult
extends java.lang.Object
implements java.io.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: 1.1 $
Author:
Mark Hall
See Also:
Serializable, Serialized Form

Field Summary
private  int m_percentCompleted
           
private  double[][] m_probabilities
           
private  int m_rowLength
           
private  int m_rowNumber
           
 
Constructor Summary
RemoteResult(int rowNum, int rowLength)
          Creates a new RemoteResult instance.
 
Method Summary
 int getPercentCompleted()
          Return the progress for this row
 double[][] getProbabilities()
          Return the probability distributions for this row in the visualization
 void setLocationProbs(int index, double[] distribution)
          Store the classifier's distribution for a particular pixel in the visualization
 void setPercentCompleted(int pc)
          Set the progress for this row so far
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_rowNumber

private int m_rowNumber

m_rowLength

private int m_rowLength

m_probabilities

private double[][] m_probabilities

m_percentCompleted

private int m_percentCompleted
Constructor Detail

RemoteResult

public RemoteResult(int rowNum,
                    int rowLength)
Creates a new RemoteResult instance.

Parameters:
rowNum - the row number
rowLength - the number of pixels in the row
Method Detail

setLocationProbs

public void setLocationProbs(int index,
                             double[] distribution)
Store the classifier's distribution for a particular pixel in the visualization

Parameters:
index - the pixel
distribution - 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