qmctorch.utils.stat_utils module

qmctorch.utils.stat_utils.blocking(x, block_size, expand=False)[source]

block the data

Parameters:
  • x (data) – size Nsample, Nexp

  • block_size (int) – size of the block

qmctorch.utils.stat_utils.correlation_coefficient(x, norm=True)[source]

Computes the correlation coefficient

Parameters:
  • x (np.ndarray) – measurement of size [Nsample, Nexperiments]

  • norm (bool, optional) – [description]. Defaults to True.

qmctorch.utils.stat_utils.integrated_autocorrelation_time(correlation_coeff, size_max)[source]

Computes the integrated autocorrelation time

Parameters:
  • correlation_coeff (np.ndarray) – coeff size Nsample,Nexp

  • size_max (int) – max size

qmctorch.utils.stat_utils.fit_correlation_coefficient(coeff)[source]
Fit the correlation coefficient

to get the correlation time.

Parameters:

coeff (np.ndarray) – correlation coefficient

Returns:

correlation time, fitted curve

Return type:

float, np.ndarray