Skip to main content

MCRLLM: Multivariate Curve Resolution by Log-Likelihood Maximization

Project description

MCRLLM: Multivariate Curve Resolution by Log-Likelihood Maximization.

X = CS
where
X(nxk): Spectroscopic data where n spectra acquired over k energy levels
C(nxa): Composition map based on a MCRLLM components
S(axk): Spectra of the a components as computed by MCRLLM

Method first presented in

Lavoie F.B., Braidy N. and Gosselin R. (2016) Including Noise Characteristics in MCR to improve Mapping and Component Extraction from Spectral Images, Chemometrics and Intelligent Laboratory Systems, 153, 40-50.

Input data

Algorithm is designed to treat 2D data X(nxk) where n spectra acquired over k energy levels.
A 3D spectral image X(n1,n2,k) can be unfolded to a 2D matrix X(n1xn2,k) prior to MCRLLM analysis. Composition maps can then be obtained by folding C(n1xn2,a) into 2D chemical maps C(n1,n2,a).

Input and output arguments

MCRLLM requires 2 inputs : X data and number of MCRLLM components to compute (nb).
decomposition = mcr.mcrllm(X,nb)

Results

Show S and C for each iteration (all) or only for final results (final).
S_all = decomposition.allS
S_final = decomposition.S
C_all = decomposition.allC
C_final = decomposition.C

Example

#Compute MCRLLM on X using 7 components.
import MCRLLM as mcr
import matplotlib.pyplot as plt
decomposition = mcr.mcrllm(X,7)
#Iterate each component 10 times
decomposition.iterate(10)
S_final = decomposition.S
C_final = decomposition.C
plt.figure();plt.plot(S_final.T)
plt.figure();plt.plot(C_final)

Compatibility

MCRLLM tested on Python 3.7 using the following modules:
Numpy 1.17.2
Scipy 1.3.1
Sklearn 0.21.3
Pysptools 0.15.0
Tqdm 4.36.1

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MCRLLM-0.0.54.tar.gz (458.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MCRLLM-0.0.54-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file MCRLLM-0.0.54.tar.gz.

File metadata

  • Download URL: MCRLLM-0.0.54.tar.gz
  • Upload date:
  • Size: 458.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for MCRLLM-0.0.54.tar.gz
Algorithm Hash digest
SHA256 3dfafc4658db4ccfe9b6561aa5278d68388a23de96091fb7b1f85f74b6c71acd
MD5 b0e41571836de84295a5befd20cec441
BLAKE2b-256 840ee1268870443e288babf671d41e5d317253acc1c311b7837e9eaafaf66eb4

See more details on using hashes here.

File details

Details for the file MCRLLM-0.0.54-py3-none-any.whl.

File metadata

  • Download URL: MCRLLM-0.0.54-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for MCRLLM-0.0.54-py3-none-any.whl
Algorithm Hash digest
SHA256 2b0e5504813868aefd072e9a8551c3fba0522bec446b2f4e171b4a7f76c7fd82
MD5 65205b6643de87651577f9421a894609
BLAKE2b-256 537f6e59616751dab7b4d67b9e051cdba602a3957c31974d06180baadb0b062e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page