Description Usage Arguments Value Author(s) Examples
Returns the number of atoms the specified element in a compound of the specified mass for the specified quantile level
1 2 | ## S4 method for signature 'compoundQuantiles'
getAtomCount(object, element, mass, quantile)
|
object |
A compoundQuantiles object |
element |
The element of interest specified by element symbol |
mass |
The mass of the compound specified in atomic units (=dalton) |
quantile |
The quantile level for the number of atoms |
The number of atoms
Hendrik Treutler
1 2 3 4 5 6 7 8 9 10 | cpObj <- compoundQuantiles()
compoundMass <- 503
quantileLow <- 0.05
quantileHigh <- 0.95
element <- "C"
countLow <- getAtomCount(object = cpObj, element = element, mass = compoundMass, quantile = quantileLow)
countHigh <- getAtomCount(object = cpObj, element = element, mass = compoundMass, quantile = quantileHigh)
print(paste("The ", (quantileHigh - quantileLow) * 100, "% confidence interval for the number of atoms of element ", element, " in a compound with mass ", compoundMass, " is [", countLow, ", ", countHigh, "]", sep = ""))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.