Class BatchDistanceTask

java.lang.Object
javax.swing.SwingWorker<Void,Integer>
cz.fidentis.analyst.gui.task.batch.distance.BatchDistanceTask
All Implemented Interfaces:
Runnable, Future<Void>, RunnableFuture<Void>
Direct Known Subclasses:
BatchIndirectDistanceTask, BatchPairwiseDistanceTask

public abstract class BatchDistanceTask extends SwingWorker<Void,Integer>
A task that computes distance-based similarity of the set of faces.
  • Constructor Details

    • BatchDistanceTask

      public BatchDistanceTask(ProgressDialog<Void,Integer> progressDialog, BatchControlPanel controlPanel)
      Constructor.
      Parameters:
      progressDialog - A window that show the progress of the computation. Must not be null
      controlPanel - A control panel with computation parameters. Must not be null
  • Method Details

    • done

      protected void done()
      Overrides:
      done in class SwingWorker<Void,Integer>
    • getDistSimilarities

      public double[][] getDistSimilarities()
      Returns computed 2D matrix of distance similarities or null
      Returns:
      computed 2D matrix of distance similarities or null
    • getDistDeviations

      public double[][] getDistDeviations()
      Returns computed 2D matrix of sample standard deviations or null
      Returns:
      computed 2D matrix of sample standard deviations or null
    • getProgressDialog

      protected ProgressDialog<Void,Integer> getProgressDialog()
    • getControlPanel

      protected final BatchControlPanel getControlPanel()
    • setBatchDistance

      protected void setBatchDistance(BatchDistance batchDistance)
    • getBatchDistance

      protected BatchDistance getBatchDistance()