public class NMRSpectrum extends Object implements chemaxon.calculations.nmr.Spectrum
Modifier and Type | Class and Description |
---|---|
static class |
NMRSpectrum.Nucleus
Nucleus enumeration type.
|
static class |
NMRSpectrum.Unit
Unit enumeration type.
|
Modifier and Type | Field and Description |
---|---|
protected double |
functionScale
Scale factor for NMR spectrum function scaling.
|
Constructor and Description |
---|
NMRSpectrum(Molecule mol)
Constructor.
|
NMRSpectrum(Molecule mol,
NMRSpectrum.Nucleus nucleusType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
computeFunctionScale()
Computes the scaling factor for the unscaled NMR spectrum function.
|
protected void |
computeFunctionScale(double aimedMaxValue,
double[] places) |
List<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() |
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() |
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() |
String |
getName()
Returns the name of the NMR spectrum.
|
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(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.
|
protected double functionScale
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
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 List<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 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()
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 String getName()
public void setName(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()
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()
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()