Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:language_reference:functions:statistics [2016/10/09 21:54] – created Maurits W. Haverkortdocumentation:language_reference:functions:statistics [2016/10/10 09:41] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 ====
 +<code Quanty Statistics.Quanty>
 +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
 +</code>
 +
 +==== Result ====
 +<file Quanty_Output Statistics.out>
 +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
 +     9.486832980505E-01       100010
 +     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 
 +</file>
 +
 +===== Table of contents =====
 +{{indexmenu>.#1}}
Print/export