pymem3dg.util

Description

Functions

femtoJToKBT(energy, temperature)

Unit conversion from femto (1e-15) Joule to kBT

gaussianDistribution(x, mean, sd)

Gaussian distribution

linearSampling(a_list, numPts)

linear Sampling

rowwiseDotProduct(a, b)

rowwise dot product

rowwiseNorm(matrix)

rowwise norm

rowwiseNormalize(matrix)

Rowwise normalize the matrix

rowwiseScaling(scaling, matrix)

rowwise scaling

smooth(y, box_pts)

Apply moving average to smooth the data

sphericalHarmonicsPerturbation(coordinate, ...)

Apply spherical harmonics to perturb the vertex positions of the mesh in the direction of (position - origin)

tanhDistribution(x, sharpness[, center])

unit tanh distribution y(x) that is y=1 at x=-inf and y=0 at x=+inf :param x: distribution argument :type x: array :param sharpness: sharpness of transition :type sharpness: float :param center: location of transition between 1 and 0.

zeroPadding(frame[, length, padding])

pad frame index with dummy string in the font