littlemcmc.QuadPotentialFullInv¶
-
class
littlemcmc.
QuadPotentialFullInv
(A, dtype=None)¶ QuadPotential object for Hamiltonian calculations using inverse of covariance matrix.
-
__init__
(A, dtype=None)¶ Compute the lower cholesky decomposition of the potential.
Parameters: - A : matrix, ndim = 2
Inverse of covariance matrix for the potential vector
Methods
__init__
(A[, dtype])Compute the lower cholesky decomposition of the potential. energy
(x[, velocity])Compute kinetic energy at a position in parameter space. raise_ok
([vmap])Check if the mass matrix is ok, and raise ValueError if not. random
()Draw random value from QuadPotential. reset
()Reset quadpotential adaptation routine. update
(sample, grad, tune)Inform the potential about a new sample during tuning. velocity
(x[, out])Compute the current velocity at a position in parameter space. velocity_energy
(x, v_out)Compute velocity and return kinetic energy at a position in parameter space. -