
API Reference¶
This is not an exhaustive list of classes and functions, but rather those most likely to be of interest to users and developer. See Index and Module Index for a full list.
crikit.cri
: Coherent Raman Imagery (CRI) classes and functions¶
Classes¶
|
Retrieve the real and imaginary components of coherent Raman data via the Kramers-Kronig (KK) relation. |
Phase error correction using alternating least squares (ALS) |
|
Scale error correction using Savitky-Golay |
Functions¶
|
Retrieve the real and imaginary components of a CRI spectra(um) via the Kramers-Kronig (KK) relation. |
|
Compute the one-dimensional Hilbert Transform. |
crikit.data
: Data container classes¶
Classes¶
|
Frequency [,wavelength, and waevnumber] class |
|
Replicate class |
|
Spectrum class |
|
Spectra class |
|
Hyperspectral imagery class |
crikit.io
: Input/Output (IO) functions¶
Functions¶
|
Import dataset(s) from HDF file |
|
Import dataset(s) from HDF file |
Return import attributes particular to the “BCARS 1” system at NIST |
|
Return import attributes particular to the “BCARS 2” system at NIST |
|
|
Uses a conversion dict (rosetta) to process the meta data in output_cls_instance |
|
Return the highest-priority value |
crikit.measurement
: Measurement classes¶
Classes¶
FFT Spatial Noise Metric (Ratio - 1) |
|
Meausure peak amplitude. |
|
Meausure the addition of two peaks (f1 + f2). |
|
Meausure the amplitude of a peak between troughs. |
|
Meausure the difference (subtraction) of two peaks (f1 - f2). |
|
Meausure the ratio (division) of two peaks. |
|
Meausure the multiplication of two peak. |
|
|
|
|
Find peaks and shoulders of a signal. |
crikit.preprocess
: Preprocessing classes and functions¶
Classes¶
|
Applies an exact, unbiased inverse of the Anscombe variance-stabilizing transformation assuming a mixed Poisson-Gaussian noise model as: |
Applies the generalized Anscombe variance-stabilization transform assuming a mixed Poisson-Gaussian noise model as: |
|
|
Applies a closed-form approximation of the exact unbiased inverse of the generalized Anscombe variance-stabilizing transformation assuming a mixed Poisson-Gaussian noise model as: |
|
Applies an exact, unbiased inverse of the generalized Anscombe variance-stabilizing transformation assuming a mixed Poisson-Gaussian noise model as: |
|
Set first or last column that is not all 0’s to 0. |
|
Set first or last row that is not all 0’s to 0. |
Compute the SVD of a signal (just wraps numpy.linalg.svd) i.e., decompose the input into components. |
|
Reconstruct the original data using the SVD components. |
|
|
Implement the generalized forward Anscombe transformation. |
|
Applies an exact, unbiased inverse of the generalized Anscombe variance-stabilizing transformation assuming a mixed Poisson-Gaussian noise model as: |
Subtract baseline using asymmetric least squares algorithm |
|
crikit.utils
: Utility functions¶
Classes¶
|
Container that describes processing steps (ie it contains “breadcrumbs”) |
Functions¶
|
Similar to numpy arange but only returns non-zero elements |
|
Make 1D array into ndim dimensions |
|
Make 1D data array equal in dimensions to data_to_match |
|
Given a vector and a value (or list/vector of values), find the index and value of the closest match |
|
Convert a col and row counter to 1D linear count |
|
Take the mean of an nd array, except axis, returning a 1D array |
|
Take in an n-dimensional array and return a 1D version operated on by fcn. |
|
Convert a 1D counter into a col and row counter |
|
Take the mean of an nd array, except axis, returning a 1D array |