getAtomCount-compoundQuantiles-method: The number of atoms of the given element

Description Usage Arguments Value Author(s) Examples

Description

Returns the number of atoms the specified element in a compound of the specified mass for the specified quantile level

Usage

1
2
## S4 method for signature 'compoundQuantiles'
getAtomCount(object, element, mass, quantile)

Arguments

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

Value

The number of atoms

Author(s)

Hendrik Treutler

Examples

 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 = ""))

CAMERA documentation built on Nov. 8, 2020, 4:59 p.m.