serrsBayes0.5-0 package

Bayesian Modelling of Raman Spectroscopy

computeLogLikelihood

Compute the log-likelihood.

copyLogProposals

Initialise the vector of Metropolis-Hastings proposals.

effectiveSampleSize

Compute the effective sample size (ESS) of the particles.

fitSpectraMCMC

Fit the model using Markov chain Monte Carlo.

fitSpectraSMC

Fit the model using Sequential Monte Carlo (SMC).

fitVoigtIBIS

Fit the model with Voigt peaks using iterated batch importance samplin...

fitVoigtPeaksSMC

Fit the model with Voigt peaks using Sequential Monte Carlo (SMC).

getBsplineBasis

Compute cubic B-spline basis functions for the given wavenumbers.

getVoigtParam

Compute the pseudo-Voigt mixing ratio for each peak.

marginalMetropolisUpdate

Update all of the parameters using a single Metropolis-Hastings step.

mhUpdateVoigt

Update the parameters of the Voigt peaks using marginal Metropolis-Has...

mixedVoigt

Compute the spectral signature using Voigt peaks.

resampleParticles

Resample in place to avoid expensive copying of data structures, using...

residualResampling

Compute an ancestry vector for residual resampling of the SMC particle...

reWeightParticles

Update the importance weights of each particle.

serrsBayes

Bayesian modelling and quantification of Raman spectroscopy

sumDexp

Sum log-likelihoods of i.i.d. exponential.

sumDlogNorm

Sum log-likelihoods of i.i.d. lognormal.

sumDnorm

Sum log-likelihoods of Gaussian.

weightedGaussian

Compute the spectral signature using Gaussian peaks.

weightedLorentzian

Compute the spectral signature using Lorentzian peaks.

weightedMean

Compute the weighted arithmetic means of the particles.

weightedVariance

Compute the weighted variance of the particles.

Sequential Monte Carlo (SMC) algorithms for fitting a generalised additive mixed model (GAMM) to surface-enhanced resonance Raman spectroscopy (SERRS), using the method of Moores et al. (2016) <arXiv:1604.07299>. Multivariate observations of SERRS are highly collinear and lend themselves to a reduced-rank representation. The GAMM separates the SERRS signal into three components: a sequence of Lorentzian, Gaussian, or pseudo-Voigt peaks; a smoothly-varying baseline; and additive white noise. The parameters of each component of the model are estimated iteratively using SMC. The posterior distributions of the parameters given the observed spectra are represented as a population of weighted particles.

  • Maintainer: Matt Moores
  • License: GPL (>= 2) | file LICENSE
  • Last published: 2021-06-28