Class BatchDistanceTask
- All Implemented Interfaces:
Runnable
,Future<Void>
,RunnableFuture<Void>
- Direct Known Subclasses:
BatchIndirectDistanceTask
,BatchPairwiseDistanceTask
A task that computes distance-based similarity of the set of faces.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorsConstructorDescriptionBatchDistanceTask
(ProgressDialog<Void, Integer> progressDialog, BatchControlPanel controlPanel) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
done()
protected BatchDistance
protected final BatchControlPanel
double[][]
Returns computed 2D matrix of sample standard deviations ornull
double[][]
Returns computed 2D matrix of distance similarities ornull
protected ProgressDialog
<Void, Integer> protected void
setBatchDistance
(BatchDistance batchDistance) Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, doInBackground, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
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 benull
controlPanel
- A control panel with computation parameters. Must not benull
-
-
Method Details
-
done
protected void done()- Overrides:
done
in classSwingWorker<Void,
Integer>
-
getDistSimilarities
public double[][] getDistSimilarities()Returns computed 2D matrix of distance similarities ornull
- Returns:
- computed 2D matrix of distance similarities or
null
-
getDistDeviations
public double[][] getDistDeviations()Returns computed 2D matrix of sample standard deviations ornull
- Returns:
- computed 2D matrix of sample standard deviations or
null
-
getProgressDialog
-
getControlPanel
-
setBatchDistance
-
getBatchDistance
-