comirva.util
Class PCACalculationThread
java.lang.Object
java.lang.Thread
comirva.util.PCACalculationThread
- All Implemented Interfaces:
- Runnable
public class PCACalculationThread
- extends Thread
This class implements a thread for
calculating a PCA. Since this may take
a while, it would freeze the program if
not executed as thread.
Method Summary |
void |
run()
This method is called when the thread is started. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
PCACalculationThread
public PCACalculationThread(DataMatrix dm,
PCAConfig pcaCfg)
- Creates a PCACalculationThread for training the SOM
som
which has already
been initialized.
- Parameters:
dm
- a DataMatrix holding the input datapcaCfg
- a PCAConfig representing the configuration for the PCA-calculation
PCACalculationThread
public PCACalculationThread(DataMatrix dm,
PCAConfig pcaCfg,
JLabel sb,
Workspace ws)
- Creates a PCACalculationThread for training the SOM
som
which has already
been initialized.
- Parameters:
dm
- a DataMatrix holding the input datapcaCfg
- a PCAConfig representing the configuration for the PCA-calculationsb
- a JLabel representing the status bar of CoMIRVA's UIws
- the Workspace of CoMIRVA (data matrices and meta-data vectors)
run
public void run()
- This method is called when the thread is started.
The PCA is initialized and trained and the user
is informed when training is finished (if the status bar was specified).
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
- See Also:
Runnable.run()