Package gov.nih.mipav.model.algorithms
Class AlgorithmLLE
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.AlgorithmLLE
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.WindowListener,java.lang.Runnable,java.util.EventListener
public class AlgorithmLLE extends AlgorithmBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classAlgorithmLLE.distanceIndexComparatorprivate classAlgorithmLLE.distanceIndexItem
-
Field Summary
Fields Modifier and Type Field Description private intdprivate intnumberOfNeighborsThis is a port of the file lle.m created by Professor Lawrence K.private doubletol-
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, destImage, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStopped
-
-
Constructor Summary
Constructors Constructor Description AlgorithmLLE(ModelImage destImg, ModelImage srcImg, int d, int numberOfNeighbors, double tol)Creates a new AlgorithmLLE object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalize()Prepares this class for destruction.voidrunAlgorithm()Starts the algorithm.-
Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
actionPerformed, addListener, addProgressChangeListener, calculateImageSize, calculatePrincipleAxis, computeElapsedTime, computeElapsedTime, convertIntoFloat, delinkProgressToAlgorithm, delinkProgressToAlgorithmMulti, displayError, errorCleanUp, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, generateProgressValues, getDestImage, getElapsedTime, getMask, getMaxProgressValue, getMinProgressValue, getNumberOfThreads, getProgress, getProgressChangeListener, getProgressChangeListeners, getProgressModulus, getProgressStep, getProgressValues, getSrcImage, isCompleted, isImage25D, isMultiThreadingEnabled, isRunningInSeparateThread, isThreadStopped, linkProgressToAlgorithm, linkProgressToAlgorithm, makeProgress, notifyListeners, removeListener, removeProgressChangeListener, run, setCompleted, setImage25D, setMask, setMaxProgressValue, setMinProgressValue, setMultiThreadingEnabled, setNumberOfThreads, setProgress, setProgressModulus, setProgressStep, setProgressValues, setProgressValues, setRunningInSeparateThread, setSrcImage, setStartTime, setThreadStopped, startMethod, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
numberOfNeighbors
private int numberOfNeighbors
This is a port of the file lle.m created by Professor Lawrence K. Saul References: 1.) Nonlinear Dimensionality Reduction by Locally Linear Embedding by Sam T. Roweis and Lawrence K Saul, Science, Vol. 290, December 22, 2000, pp. 2323 - 2326. 2.) Think Globally, Fit Locally: Unsupervised Learning of Low Dimensional Manifolds by Lawrence K. Saul and Sam T. Roweis, Journal of Machine Learning Research, Vol. 4, 2003, pp. 119 - 155. 3.) Unsupervised Learning of Image Manifolds by Semidefinite Programming by Kilian Q. Weinberger and Lawrence K. Saul.
-
tol
private double tol
-
d
private int d
-
-
Constructor Detail
-
AlgorithmLLE
public AlgorithmLLE(ModelImage destImg, ModelImage srcImg, int d, int numberOfNeighbors, double tol)
Creates a new AlgorithmLLE object.- Parameters:
destImg- list of image models where result image is to storedsrcImg- source image modeld- Number of embedded dimensionsnumberOfNeighbors- Number of neighborstol- regularizer
-
-
Method Detail
-
finalize
public void finalize()
Prepares this class for destruction.- Overrides:
finalizein classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
Starts the algorithm.- Specified by:
runAlgorithmin classAlgorithmBase
-
-