Class Spectrum
java.lang.Object
org.episteme.natural.chemistry.spectroscopy.Spectrum
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named
Base class for all spectra (IR, NMR, Mass, UV-Vis, etc.).
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPeak(SpectralPeak peak) getId()Returns the unique identifier of this entity.getPeaks()Returns the traits map for this entity.double[]getXData()double[]getYData()voidsetXData(double[] data) voidvoidvoidsetYData(double[] data) voidvoidtoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Spectrum
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
setXData
public void setXData(double[] data) -
setYData
public void setYData(double[] data) -
setXUnit
-
setYUnit
-
setXLabel
-
setYLabel
-
getXData
public double[] getXData() -
getYData
public double[] getYData() -
addPeak
-
getPeaks
-
toString
-