Math

This module contains a small collection of mathematical operations relevant to processing thermal transport data.

List of all methods

gpyumd.math.autocorrelate(f: ndarray, max_lag: float) ndarray[source]

Computes a fast autocorrelation function <f*f> and returns up to max_lag.

Parameters
  • f – Vector for autocorrelation

  • max_lag – Lag at which to calculate up to

Returns

Autocorrelation vector

gpyumd.math.correlate(f: ndarray, g: ndarray, max_lag: float) ndarray[source]

Computes fast correlation function <f*g> and returns up to max_lag. Assumes f and g are same length.

Parameters
  • f – Vector for correlation

  • g – Vector for correlation

  • max_lag – Lag at which to calculate up to

Returns

Correlation vector

gpyumd.math.running_ave(y: ndarray, x: ndarray) ndarray[source]
Parameters
  • y – Dependent variable

  • x – Independent variable

Returns

Running average of y