create_exp_1D

pyspeckle.pyspeckle.create_exp_1D(M, mean, stdev, cl)[source]

Generate an array of length M of values with exponential autocorrelation.

The returned array will have the autocorrelation function exp(-x/cl).

The speckle pattern will also have a normal probability density function with the specified mean and standard deviation.

see https://www.cmu.edu/biolphys/deserno/pdf/corr_gaussian_random.pdf

Parameters:
  • M – dimension of desired array [-]

  • mean – average value of signal [gray levels]

  • stdev – standard deviation of signal [gray levels]

  • cl – correlation length [# of pixels]

Returns:

array of length M