Skip to content

Code for "Rapid and Rapid and deterministic estimation of probability densities using scale-free field theories" arXiv:1312.6661 [physics.data-an]

shhong/13_deft

 
 

Repository files navigation

README for deft_13

Written by by Justin B. Kinney, Cold Spring Harbor Laboratory

Last updated on 11 April 2014 

Reference: 
    Kinney, J.B. (2014) Rapid and deterministic estimation of probability densities using scale-free field theories.
    arXiv:1312.6661 [physics.data-an]
    
Code: https://github.com/jbkinney/13_deft

Note: An earlier version of this code was published on SourceForge at https://sourceforge.net/projects/densityestimation/. This will not be maintained and should be ignored.

=== Instructions ===

All computations were performed using the Canopy Python Environment by Entought, available at https://www.enthought.com/products/canopy/ 

The file "deft.py" contains all the density estmation routines of DEFT. Just copy this file to any directory in which you want to peform density estimation. Note: kinney2013_utils.py is NOT required by deft.py

To see a simple demsontration of DEFT in 1 dimension, run "demo.py"

To recreate Figs. 1 and 2, run "fig1_fig2_calculate.py", then "fig1_fig2_draw.py"

To recreate Fig. 3, run "fig3_calculate.py", then "fig3_draw.py"

To recreate Fig. 4, run "fig4_calculate.py", then "fig4_draw.py"

=== FILES ===

deft.py:
	Contains all code for density estimation in 1D and 2D. See docstring for details.

fig1_fig2_calculate.py:
	Performs computations for Figs. 1 and 2
	
fig1_fig2_draw.py:
	Draws Figs. 1 and 2
	
fig1.pdf:
	Figure 1
	
fig2.pdf:
	Figure 2
	
fig3_calculate.py:
	Performs computations for Fig. 3
	
fig3_draw.py:
	Draws Fig. 3
	
fig3.pdf:
	Figure 3
	
fig4_calculate.py:
	Performs computations for Fig. 4
	
fig4_draw.py:
	Draws Fig. 4
	
fig4.pdf:
	Figure 4

dists.npy:
	Data file containing results of comptuations for Fig. 3

things_1d.pk:
	Data file containing results of computations for Figs. 1 and 2

things_2d.pk:
	Data file containing results of computations for Fig. 4

kinney2013_utils.py:
	Contains miscellaneous functions used in the python scripts listed above. Is NOT required by deft.py

About

Code for "Rapid and Rapid and deterministic estimation of probability densities using scale-free field theories" arXiv:1312.6661 [physics.data-an]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published