The sherpa.utils module
Objects and utilities used by multiple Sherpa subpackages.
Changed in version 4.16.0: The parallel_map
function should now be taken from the
sherpa.utils.parallel
module.
Functions
|
Check whether two floating-point numbers are close together. |
The scaling applied to a value to create its range. |
|
|
An alternative implementation of Muller's method for root finding. |
|
A basic root finding algorithm that uses standard bisection |
|
Convert a string to a boolean. |
|
Compare two models using the F test. |
|
Compare two models using the Maximum Likelihood Ratio test. |
|
Add statistical and systematic errors in quadrature. |
|
Create a string representation of a filter. |
|
Populates an integrated grid |
|
Populates a blank image dataset |
|
A root-finding algorithm using Muller's method. |
|
Calculate the error function. |
|
Given a bound instance method, return a simple function that wraps it. |
|
Extract the kernel. |
|
What mask represents the given set of filters? |
|
Calculate the Gamma function. |
|
Compute the median and (-1,+1) sigma values for the data. |
|
Estimate the width of the data. |
|
Return the keyword arguments and their default values. |
|
Return the names of the keyword arguments. |
|
Estimate the middle of the data. |
|
Return the number of arguments for a function. |
|
Estimate the peak position of the data. |
|
Get 1D model parameter positions pos (val, min, max) |
|
Estimate the position of the minimum of the data. |
|
Guess model parameter amplitude (val, min, max) |
|
Guess 2D model parameter amplitude (val, min, max) |
|
Guess model parameter amplitude (val, min, max) |
|
Guess the bounds of a parameter from the independent axis. |
|
Estimate the value and valid range for the FWHM of the data. |
|
Guess 2D model parameter positions xpos, ypos ({val0, min0, max0}, |
|
Guess the radius parameter of a 2D model. |
|
Guess model parameter reference (val, min, max) |
|
Create a 1D histogram from a sequence of samples. |
|
Create 2D histogram from a sequence of samples. |
|
Calculate the regularized incomplete Gamma function (lower). |
|
Calculate the complement of the regularized incomplete Gamma function (upper). |
|
Calculate the incomplete Beta function. |
|
One-dimensional interpolation. |
|
Estimate if a file is a binary file. |
|
Calculate the log (base e) of the Gamma function. |
|
Linear one-dimensional interpolation. |
|
The PDF of a multivariate-normal. |
|
The PDF of a multivariate student-t. |
|
Nearest-neighbor one-dimensional interpolation. |
|
Polynomial one-dimensional interpolation using Neville's method. |
|
Polynomial two-dimensional interpolation using Neville's method. |
|
Alternative implementation of Mueller's method for root finding |
|
Normalize an array. |
|
Expand the kernel to match the mask. |
|
Run a function on a sequence of inputs in parallel. |
|
Apply the given limits to a parameter. |
|
Convert a filter expression into its parts. |
Draw samples from a Poisson distribution. |
|
|
Given a list of strings names and mapping vals, where names is a subset of vals.keys(), return a listing of name/value pairs printed one per line in the format '<name> = <value>'. |
|
Return the quantile element from sorted_array, where f is [0,1] using linear interpolation. |
|
Rebin a histogram. |
|
Create a range of values between start and stop. |
|
Compare y to x, using an absolute tolerance. |
|
Return the position of the origin of the kernel. |
|
Sum up data within one or more pairs of indexes. |
|
Obtain a zero of a function of one variable using Brent's root finder. |
Classes
Prevents attribute deletion and setting of new attributes after __init__ has been called. |