|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.calculations.nmr.NMRSpectrum
public class NMRSpectrum
Class for the representation of NMR spectra.
Nested Class Summary | |
---|---|
static class |
NMRSpectrum.Nucleus
Nucleus enumeration type. |
static class |
NMRSpectrum.Unit
Unit enumeration type. |
Field Summary | |
---|---|
protected double |
functionScale
Scale factor for NMR spectrum function scaling. |
Constructor Summary | |
---|---|
NMRSpectrum(Molecule mol)
Constructor. |
|
NMRSpectrum(Molecule mol,
NMRSpectrum.Nucleus nucleusType)
Constructor. |
Method Summary | |
---|---|
void |
computeFunctionScale()
Computes the scaling factor for the unscaled NMR spectrum function. |
protected void |
computeFunctionScale(double aimedMaxValue,
double[] places)
|
java.util.List<java.lang.Integer> |
getAtomIndexes()
Returns the atom indices of the NMR active nuclei. |
double[][] |
getCouplingConstants()
Returns coupling constants. |
double[][] |
getCouplingConstants(NMRSpectrum.Unit unit)
Returns coupling constants in the given unit. |
double |
getDefaultValue()
The default value of the function. |
double |
getDomainMax()
Returns the upper end of the spectrum. |
double |
getDomainMin()
Returns the lower end of the spectrum. |
double |
getFrequency()
Returns the NMR measurement frequency in MHz unit. |
protected double |
getFunctionScale()
|
double |
getHalfWidth()
Returns NMR half-width. |
double |
getIntegralValueAt(double location)
Returns the value of the NMR integral function at a given x point. |
double[] |
getLocalMaximumPlaces()
Gets the locations (elements of domain) of the local maximums of the function. |
static double[] |
getMeaningfulFrequencies()
Returns the array of meaningful NMR measurement frequencies in MHz. |
Molecule |
getMolecule()
Returns the molecule under examination. |
chemaxon.calculations.nmr.Multiplet[] |
getMultiplets()
Gets the multiplets of the function. |
java.lang.String |
getName()
Returns the name of the NMR spectrum. |
java.lang.String |
getNucleusString()
Returns the nucleus type string. |
NMRSpectrum.Nucleus |
getNucleusType()
Returns the type of the nucleus under examination. |
int |
getNumberOfNMRActiveNuclei()
Returns number of the NMR active nuclei. |
double |
getRangeMax()
Maximal y value of the NMR spectrum function. |
double |
getRangeMin()
Minimal y value of the NMR spectrum function. |
double |
getRawValueAt(double location)
Returns the value of the unscaled NMR spectrum function at a given x point. |
chemaxon.calculations.nmr.Shift[] |
getShifts()
Returns chemical shifts. |
protected Molecule |
getStrictMolecule()
|
NMRSpectrum.Unit |
getUnit()
Returns the unit type. |
double |
getValueAt(double location)
Returns the value of the NMR spectrum function at a given x point. |
boolean |
isCouplingNeeded()
Returns whether spin-spin couplings are taken into account. |
boolean |
isImplicitHydrogenMode()
Returns implicit hydrogen mode. |
void |
setCouplingConstants(double[][] couplingConstants)
Sets coupling constants. |
void |
setCouplingNeeded(boolean couplingNeeded)
Sets whether spin-spin couplings are taken into account. |
void |
setDomainMax(double domainMax)
Sets the upper end of the spectrum. |
void |
setDomainMin(double domainMin)
Sets the lower end of the spectrum. |
void |
setFrequency(double frequency)
Sets the NMR measurement frequency. |
void |
setHalfWidth(double halfWidth)
Sets NMR half-width. |
void |
setImplicitHydrogenMode(boolean implicitHydrogenMode)
Sets implicit hydrogen mode. |
void |
setMultiplets(chemaxon.calculations.nmr.Multiplet[] multiplets)
Sets Multiplet array of the spectrum. |
void |
setName(java.lang.String name)
Sets the name of the NMR spectrum |
void |
setNumberOfNMRActiveNuclei(int numberOfNMRActiveNuclei)
Sets number of the NMR active nuclei. |
void |
setShifts(chemaxon.calculations.nmr.Shift[] shifts)
Sets chemical shifts. |
void |
setUnit(NMRSpectrum.Unit unit)
Sets the unit type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double functionScale
Constructor Detail |
---|
public NMRSpectrum(Molecule mol)
mol
- Input molecule, needs to be explicitly hydrogenized in case of 1H NMR.public NMRSpectrum(Molecule mol, NMRSpectrum.Nucleus nucleusType)
mol
- Input molecule, needs to be explicitly hydrogenized in case of 1H NMR.nucleusType
- NMRSpectrum.Nucleus
Method Detail |
---|
public Molecule getMolecule()
protected Molecule getStrictMolecule()
public int getNumberOfNMRActiveNuclei()
public void setNumberOfNMRActiveNuclei(int numberOfNMRActiveNuclei)
numberOfNMRActiveNuclei
- Number of NMR active nuclei.public chemaxon.calculations.nmr.Shift[] getShifts()
public void setShifts(chemaxon.calculations.nmr.Shift[] shifts)
shifts
- Array of chemical shifts.public java.util.List<java.lang.Integer> getAtomIndexes()
public double[][] getCouplingConstants()
public double[][] getCouplingConstants(NMRSpectrum.Unit unit)
unit
- Unit requested.
public void setCouplingConstants(double[][] couplingConstants)
couplingConstants
- Array of coupling constants.public NMRSpectrum.Nucleus getNucleusType()
NMRSpectrum.Nucleus
.public java.lang.String getNucleusString()
public boolean isImplicitHydrogenMode()
public void setImplicitHydrogenMode(boolean implicitHydrogenMode)
implicitHydrogenMode
- True if implicit hydrogen mode is needed.public double getFrequency()
public void setFrequency(double frequency)
frequency
- NMR frequency.public double getHalfWidth()
public void setHalfWidth(double halfWidth)
halfWidth
- NMR half-width.public NMRSpectrum.Unit getUnit()
NMRSpectrum.Unit
public void setUnit(NMRSpectrum.Unit unit)
unit
- NMRSpectrum.Unit
public boolean isCouplingNeeded()
public void setCouplingNeeded(boolean couplingNeeded)
couplingNeeded
- True if spin-spin couplings are taken into account.public static double[] getMeaningfulFrequencies()
public double[] getLocalMaximumPlaces()
chemaxon.calculations.nmr.Spectrum
getLocalMaximumPlaces
in interface chemaxon.calculations.nmr.Spectrum
public double getDomainMin()
public void setDomainMin(double domainMin)
domainMin
- Lower end of the spectrum.public double getDomainMax()
public void setDomainMax(double domainMax)
domainMax
- Upper end of the spectrum.public java.lang.String getName()
public void setName(java.lang.String name)
name
- public double getValueAt(double location)
location
- x value where the function is evaluated.
public double getRawValueAt(double location)
location
- x value where the function is evaluated.
public double getIntegralValueAt(double location)
location
- x value where the function is evaluated.
public chemaxon.calculations.nmr.Multiplet[] getMultiplets()
chemaxon.calculations.nmr.Spectrum
getMultiplets
in interface chemaxon.calculations.nmr.Spectrum
public void setMultiplets(chemaxon.calculations.nmr.Multiplet[] multiplets)
Multiplet
array of the spectrum.
multiplets
- New Multiplet
array.public double getDefaultValue()
chemaxon.calculations.nmr.Spectrum
getDefaultValue
in interface chemaxon.calculations.nmr.Spectrum
public double getRangeMax()
public double getRangeMin()
public void computeFunctionScale()
protected void computeFunctionScale(double aimedMaxValue, double[] places)
protected double getFunctionScale()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |