API reference#
This page provides an auto-generated summary of comet_maths’s API. For more details and examples, refer to the relevant chapters in the main part of the documentation.
Interpolation#
Class to provide a set of interpolation methods for the interpolation of data. |
|
|
Interpolates 1D data to defined coordinates x in 1D |
|
Method for interpolating between datapoints by following an example. |
Interpolates 1D data to defined coordinates x in 1D |
|
Function providing for each analytical interpolation method, the default methods that are compared to determine the model uncertainty for this interpolation method. |
|
|
Function to calculate the interpolation model uncertainty by calculating the standard deviation between various interpolation methods. |
|
Function to perform interpolation using Gaussian process regression |
|
Function to perform basic gaussian process regression |
|
Method for interpolating between datapoints by following an example. |
Linear Algebra#
|
Calculate the local Jacobian of function y=f(x) for a given value of x |
Calculate the correlation matrix between the MC-generated samples of output quantities. |
|
Find the nearest positive-definite matrix |
|
Returns true when input is positive-definite, via Cholesky |
|
|
Convert covariance matrix to correlation matrix |
|
Convert covariance matrix to uncertainty |
|
Convert correlation matrix to covariance matrix |
|
Convert covariance matrix to correlation matrix |
|
Combine correlation matrices for different input quantities, with a correlation matrix that gives the correlation between the input quantities into a full (flattened) correlation matrix combining the two. |
|
Separate a full (flattened) correlation matrix into a list of correlation matrices for each output variable and a correlation matrix between the output variables. |
Function to expand the provided correlation matrix (which defines the correlation along 1 or more dimensions), to higher dimensions, so that the total correlation matrix can be calculated. |
|
|
Function to flip the order of the underlying dimensions for an err_corr for matrices that describe the combination of 2 dimensions |
Generating MC Samples#
Generate correlated MC sample of input quantity with given uncertainties and correlation matrix. |
|
Generate the errors of a correlated MC sample of input quantity with given uncertainties and correlation matrix. |
|
function to determine the shape of the Monte Carlo (MC) sample |
|
Generate MC sample of input quantity with zero uncertainties. |
|
Generate MC sample of input quantity with random uncertainties. |
|
|
Generate correlated MC sample of input quantity with systematic uncertainties. |
|
Generate correlated MC sample of input quantity with given uncertainties and correlation matrix. |
Generate correlated MC sample of input quantity with a given covariance matrix. |
|
Generate correlated MC sample of input quantity with a given covariance matrix. |
|
Method to correlate independent sample of input quantities using correlation matrix and Cholesky decomposition. |
|
|
Function to generate samples from standard probability functions (with zero as mean and 1 as width) |