Two point correlation function of a finite 2D lattice

버전 1.5.0.0 (3.56 KB) 작성자: Ilya Valmianski
Compute the two point correlation function of a finite 2D lattice.
다운로드 수: 1.8K
업데이트 날짜: 2014/4/22

라이선스 보기

Computes the distance 2-point correlation function of a finite 2D lattice. The functions is:
[ coorfun r rw] = twopointcorr(x,y,dr,blksize,verbose)

Where x is the list of x coordinates of lattice points. y is the list of y coordinates of the lattice points,and dr is the binning length for the correlation function. blksize is the number of points processed at a time. verbose is a boolean on whether to display current progress.

The outputs are coorfun, r, and rw. Coorfun is a vector of normalized correlation function values for distances recorded in the r vector. rw is the weight (number of points) contributing to corrfun calculation at a particular r. Low rw means that corrfun at that r value is unreliable.

This function has been fully vectorized to improve performance.

인용 양식

Ilya Valmianski (2024). Two point correlation function of a finite 2D lattice (https://www.mathworks.com/matlabcentral/fileexchange/31353-two-point-correlation-function-of-a-finite-2d-lattice), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Condensed Matter & Materials Physics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.5.0.0

Solved a bug where (x,y) were not column vectors. Updated the description.

1.4.0.0

Added blksize and verbose optional arguments. blksize allows to consider the data in blocks thus reducing memory requirements/out of memory errors. Verbose allows the function to output in display how much progress has been achieved.

1.3.0.0

Improved vectorization. Removed bias due to finite size of lattice.

1.2.0.0

Some performance improvements.

1.1.0.0

There was a minor error in normalization which resulted in the entire function being divided by the number of particles an extra time.

1.0.0.0