pyCGM2.Math#

derivation#

splineFittingDerivation(values, sampleFrequency)

Spline fitting derivation of an array of values.

splineDerivation(values, sampleFrequency[, ...])

Spline derivation of an array of values.

firstOrderFiniteDifference(values, ...)

First-order differentiation of an array using finite difference method.

firstOrderFiniteDifference(values, ...)

First-order differentiation of an array using finite difference method.

matrixFirstDerivation(motionList, ...)

First-order derivation of the rotation matrix contained in a list of frames.

matrixSecondDerivation(motionList, ...)

Second-order derivation of the rotation matrix contained in a list of frames.

euler#

wrapEulerTo(inputAngles, Dest)

Correct Euler angles to wrap around the target values.

euler_xyz(Matrix[, similarOrder])

Decompose a rotation matrix using the XYZ Euler sequence.

euler_xzy(Matrix[, similarOrder])

Decompose a rotation matrix using the YZX Euler sequence.

euler_yxz(Matrix[, similarOrder])

Decompose a rotation matrix using the YXZ Euler sequence.

euler_yzx(Matrix[, similarOrder])

Decompose a rotation matrix using the ZYX Euler sequence.

euler_zxy(Matrix[, similarOrder])

Decompose a rotation matrix using the ZXY Euler sequence.

euler_zyx(Matrix[, similarOrder])

Decompose a rotation matrix using the XZY Euler sequence.

geometry#

computeAngle(u1, v1)

Compute the angle between two vectors.

angleFrom2Vectors(v1, v2[, vn])

Compute a signed angle between two vectors, optionally using a common orthogonal vector.

oppositeVector(v1)

Compute the opposite (negative) of a vector.

LineLineIntersect(p1, p2, p3, p4)

Calculates the line segment pa_pb that is the shortest route between two lines p1_p2 and p3_p4.

normalisation#

timeSequenceNormalisation(Nrow, data)

Normalise a given data array to have a specified number of rows through linear interpolation.

numeric#

rms(x[, axis])

Calculate the root mean square (RMS) along a specified axis of an array.

skewMatrix(vector)

Generate a skew-symmetric matrix from a given vector.