Package adams.data.spectrumfilter
Class PLS
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.filter.AbstractFilter<T>
-
- adams.data.filter.AbstractBatchFilter<Spectrum>
-
- adams.data.spectrumfilter.PLS
-
- All Implemented Interfaces:
adams.core.CleanUpHandler,adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.ShallowCopySupporter<adams.data.filter.Filter>,adams.core.SizeOfHandler,adams.data.filter.BatchFilter<Spectrum>,adams.data.filter.Filter<Spectrum>,Serializable,Comparable
public class PLS extends adams.data.filter.AbstractBatchFilter<Spectrum>
Turns the spectra internally into instances and transforms them using the specified PLS algorithm. The generated output is then converted back into spectra.
Only works as batch filter, not in single spectrum mode.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-no-id-update <boolean> (property: dontUpdateID) If enabled, suppresses updating the ID of adams.data.id.IDHandler data containers. default: false
-generator <adams.data.instances.AbstractInstanceGenerator> (property: generator) The instance generator to use for turning the spectra into Weka Instance objects. default: adams.data.instances.SimpleInstanceGenerator
-algorithm <adams.data.instancesanalysis.pls.AbstractPLS> (property: algorithm) The PLS algorithm to use default: adams.data.instancesanalysis.pls.PLS1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.data.instancesanalysis.pls.AbstractPLSm_Algorithmthe PLS algorithm.protected adams.data.instances.AbstractInstanceGeneratorm_Generatorthe instance generator to use.
-
Constructor Summary
Constructors Constructor Description PLS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringalgorithmTipText()Tip text for this property.voiddefineOptions()Adds options to the internal list of options.StringgeneratorTipText()Tip text for this property.adams.data.instancesanalysis.pls.AbstractPLSgetAlgorithm()Returns PLS algorithm in use.adams.data.instances.AbstractInstanceGeneratorgetGenerator()Returns the instance generator in use.StringglobalInfo()Returns a string describing the object.protected Spectrum[]processBatchData(Spectrum[] data)Performs the actual batch filtering.protected SpectrumprocessData(Spectrum data)Does nothing.voidsetAlgorithm(adams.data.instancesanalysis.pls.AbstractPLS value)Sets PLS algorithm to use.voidsetGenerator(adams.data.instances.AbstractInstanceGenerator value)Sets the instance generator to use.-
Methods inherited from class adams.data.filter.AbstractFilter
checkData, cleanUp, compareTo, destroy, dontUpdateIDTipText, equals, filter, forCommandLine, getDontUpdateID, reset, setDontUpdateID, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.data.filter.Filter
cleanUp, compareTo, destroy, dontUpdateIDTipText, equals, filter, getDontUpdateID, reset, setDontUpdateID, shallowCopy, shallowCopy
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.data.filter.AbstractFilter<Spectrum>
-
setGenerator
public void setGenerator(adams.data.instances.AbstractInstanceGenerator value)
Sets the instance generator to use.- Parameters:
value- the generator
-
getGenerator
public adams.data.instances.AbstractInstanceGenerator getGenerator()
Returns the instance generator in use.- Returns:
- the generator
-
generatorTipText
public String generatorTipText()
Tip text for this property.- Returns:
- description for displaying in the GUI
-
setAlgorithm
public void setAlgorithm(adams.data.instancesanalysis.pls.AbstractPLS value)
Sets PLS algorithm to use.- Parameters:
value- the algorithm
-
getAlgorithm
public adams.data.instancesanalysis.pls.AbstractPLS getAlgorithm()
Returns PLS algorithm in use.- Returns:
- the algorithm
-
algorithmTipText
public String algorithmTipText()
Tip text for this property.- Returns:
- description for displaying in the GUI
-
processBatchData
protected Spectrum[] processBatchData(Spectrum[] data)
Performs the actual batch filtering.- Specified by:
processBatchDatain classadams.data.filter.AbstractBatchFilter<Spectrum>- Parameters:
data- the data to filter- Returns:
- the filtered data
-
-