moremath |
index |
Various bits of useful math not in the standard python library.
Constants :
- euler_gamma = 0.577215...
- catalan = 0.915965...
- golden_ratio = 1.618033...
- bits_per_nat = log2(e) = 1/log(2)
- sqrt_2pi = 2.50662...
Special Functions :
- gamma() -- Gamma function.
- lngamma() -- Logarithm of the gamma function
- factorial() -- The factorial function.
- digamma() -- Digamma function (logarithmic derivative of gamma).
- trigamma() -- Trigamma function (derivative of digamma).
- entropy() -- The entropy of a probability vector
- incomplete_gamma() -- The 'upper' incomplete gamma function.
- normalized_incomplete_gamma() --
- lg() -- Base 2 logarithms.
Vector Operations :
- rmsd() -- Root mean squared deviation of two point vectors
- minimize_rmsd() -- Find the rigid transformation that minimized the
RMSD between two vectors of points.
Minimization :
- find_root() -- 1d root finding
Probability Distributions :
- Gamma
- Dirichlet
- Multinomial
- Gaussian
Functions | ||
|
Data | ||
__all__ = ('euler_gamma', 'catalan', 'golden_ratio', 'bits_per_nat', 'sqrt_2pi', 'gamma', 'lngamma', 'factorial', 'digamma', 'trigamma', 'entropy', 'log2', 'incomplete_gamma', 'normalized_incomplete_gamma', 'argmax', 'argmin') bits_per_nat = 1.4426950408889634 catalan = 0.915965594177219 euler_gamma = 0.5772156649015329 golden_ratio = 1.618033988749895 sqrt_2pi = 2.5066282746310007 |