principia_materia.mathematics.core_math module

principia_materia.mathematics.core_math.gaussian(w, sigma, w0=0.0)

Gaussian

..math

g (w - w_0) = \frac{1}{\sqrt{2 \pi} \sigma} e^{- \frac{(w - w_0)^2}{2 sigma^2}}
principia_materia.mathematics.core_math.gs_orthog(arr, allowzero=False, tol=1e-06)

Gram-Schmidt orthonormalize a set of vectors.

Parameters:
  • arr (array of numbers, shape(n, m)) – The set of vectors to be orthonormalized, in row convention.

  • allowzero (bool, optional, default to False) – If True, allow 0 vectors in orthogonalization.

  • tol (float, optional, default to 1.0E-6) – Error tolerance.

Returns:

arr – The orthonormalized vectors.

Return type:

array of numbers, shape(n, m)