====== Statistics ====== ### Statistics(psi,base,nstep) returns a histogram listing the prefactors in psi. ### ===== Input ===== * psi : Wavefunction * base : double * nstep : Integer ===== Output ===== ===== Example ===== ### a small example ### ==== Input ==== dofile("../definitions.Quanty") print(psi1) base=2.0 nstep=10 hist = Statistics(psi1,base,nstep) for i=1,nstep do io.write(string.format("%7.4f to %7.4f | %7.4f \n",base^-(i-1),base^-(i),hist[i])) end ==== Result ==== WaveFunction: Wave Function QComplex = 0 (Real==0 or Complex==1) N = 2 (Number of basis functions used to discribe psi) NFermionic modes = 6 (Number of fermions in the one particle basis) NBosonic modes = 0 (Number of bosons in the one particle basis) # pre-factor Determinant 1 9.486832980505E-01 100010 2 3.162277660168E-01 110000 1.0000 to 0.5000 | 1.0000 0.5000 to 0.2500 | 1.0000 0.2500 to 0.1250 | 0.0000 0.1250 to 0.0625 | 0.0000 0.0625 to 0.0312 | 0.0000 0.0312 to 0.0156 | 0.0000 0.0156 to 0.0078 | 0.0000 0.0078 to 0.0039 | 0.0000 0.0039 to 0.0020 | 0.0000 0.0020 to 0.0010 | 0.0000 ===== Table of contents ===== {{indexmenu>.#1}}