GalacticDNSMass

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 50d6bfbd3a37c4433a09a2ce36869f3228bfe8e1
parent 9a010e11229097c102190b8fb1aa1ffb5112d4ee
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Thu,  7 Feb 2019 00:25:38 +1100

Inclusion of main readme, fixed file/folder names"

Diffstat:
AREADME.md | 18++++++++++++++++++
RDemo Files/Samples/bothMassSamples.npy -> demoFiles/Samples/bothMassSamples.npy | 0
RDemo Files/Samples/mr_samples.txt -> demoFiles/Samples/mr_samples.txt | 0
RDemo Files/Samples/ms_samples.txt -> demoFiles/Samples/ms_samples.txt | 0
RDemo Files/fig_pcSamples.png -> demoFiles/fig_pcSamples.png | 0
RDemo Files/hypo1/twoG/unif/.txt -> demoFiles/hypo1/twoG/unif/.txt | 0
RDemo Files/hypo1/twoG/unif/ev.dat -> demoFiles/hypo1/twoG/unif/ev.dat | 0
RDemo Files/hypo1/twoG/unif/live.points -> demoFiles/hypo1/twoG/unif/live.points | 0
RDemo Files/hypo1/twoG/unif/phys_live.points -> demoFiles/hypo1/twoG/unif/phys_live.points | 0
RDemo Files/hypo1/twoG/unif/post_equal_weights.dat -> demoFiles/hypo1/twoG/unif/post_equal_weights.dat | 0
RDemo Files/hypo1/twoG/unif/post_separate.dat -> demoFiles/hypo1/twoG/unif/post_separate.dat | 0
RDemo Files/hypo1/twoG/unif/resume.dat -> demoFiles/hypo1/twoG/unif/resume.dat | 0
RDemo Files/hypo1/twoG/unif/stats.dat -> demoFiles/hypo1/twoG/unif/stats.dat | 0
RDemo Files/hypo1/twoG/unif/summary.txt -> demoFiles/hypo1/twoG/unif/summary.txt | 0
RDemo Files/hypo2/sing/sing/.txt -> demoFiles/hypo2/sing/sing/.txt | 0
RDemo Files/hypo2/sing/sing/ev.dat -> demoFiles/hypo2/sing/sing/ev.dat | 0
RDemo Files/hypo2/sing/sing/live.points -> demoFiles/hypo2/sing/sing/live.points | 0
RDemo Files/hypo2/sing/sing/phys_live.points -> demoFiles/hypo2/sing/sing/phys_live.points | 0
RDemo Files/hypo2/sing/sing/post_equal_weights.dat -> demoFiles/hypo2/sing/sing/post_equal_weights.dat | 0
RDemo Files/hypo2/sing/sing/post_separate.dat -> demoFiles/hypo2/sing/sing/post_separate.dat | 0
RDemo Files/hypo2/sing/sing/resume.dat -> demoFiles/hypo2/sing/sing/resume.dat | 0
RDemo Files/hypo2/sing/sing/stats.dat -> demoFiles/hypo2/sing/sing/stats.dat | 0
RDemo Files/hypo2/sing/sing/summary.txt -> demoFiles/hypo2/sing/sing/summary.txt | 0
RDemo Files/hypo2/twoG/unif/ev.dat -> demoFiles/hypo2/twoG/unif/ev.dat | 0
RDemo Files/hypo2/twoG/unif/live.points -> demoFiles/hypo2/twoG/unif/live.points | 0
RDemo Files/hypo2/twoG/unif/phys_live.points -> demoFiles/hypo2/twoG/unif/phys_live.points | 0
RDemo Files/hypo2/twoG/unif/resume.dat -> demoFiles/hypo2/twoG/unif/resume.dat | 0
RInference Demo.ipynb -> inferenceDemo.ipynb | 0
RMain Code/Plotting/ResultsPlotting.ipynb -> mainCode/Plotting/ResultsPlotting.ipynb | 0
RMain Code/README.md -> mainCode/README.md | 0
RMain Code/Samples/mr_samples.txt -> mainCode/Samples/mr_samples.txt | 0
RMain Code/Samples/ms_samples.txt -> mainCode/Samples/ms_samples.txt | 0
RMain Code/hypothesisA.py -> mainCode/hypothesisA.py | 0
RMain Code/hypothesisAnalyse.py -> mainCode/hypothesisAnalyse.py | 0
RMain Code/hypothesisB.py -> mainCode/hypothesisB.py | 0
RMain Code/models.py -> mainCode/models.py | 0
36 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -0,0 +1,18 @@ +# The mass distribution of Galactic double neutron stars +Here we provide code which performs Bayesian inference on a sample of 17 Galactic double neutron stars (DNS) in order to investigate their mass distribution. We compare two hypotheses: A - recycled and non-recycled (slow) neutron stars (NS) follow an identical mass distribution, and B - they are drawn from two distinct populations. Within each hypothesis we also explore three possible functional models: gaussian, two-gaussian (mixture model), and uniform mass distributions. + +You can take a look at the [demo here](https://github.com/NicholasFarrow/GalacticDNSMass/blob/master/inferenceDemo.ipynb) or you can download the git repository with: +`git clone https://github.com/NicholasFarrow/GalacticDNSMass`. + +We highly recommend reading <arxiv link> along with this demonstraion. + +## Requirements +### Without running inference (just demonstration & data analysis): +* Jupyter or Ipython +* numpy, scipy + +### Additional requirements if performing own inference: +* PyMultiNest (see https://johannesbuchner.github.io/PyMultiNest/install.html) + +## Full code +A more detailed version of the code can be found here under [mainCode](/mainCode/) diff --git a/Demo Files/Samples/bothMassSamples.npy b/demoFiles/Samples/bothMassSamples.npy Binary files differ. diff --git a/Demo Files/Samples/mr_samples.txt b/demoFiles/Samples/mr_samples.txt diff --git a/Demo Files/Samples/ms_samples.txt b/demoFiles/Samples/ms_samples.txt diff --git a/Demo Files/fig_pcSamples.png b/demoFiles/fig_pcSamples.png Binary files differ. diff --git a/Demo Files/hypo1/twoG/unif/.txt b/demoFiles/hypo1/twoG/unif/.txt diff --git a/Demo Files/hypo1/twoG/unif/ev.dat b/demoFiles/hypo1/twoG/unif/ev.dat diff --git a/Demo Files/hypo1/twoG/unif/live.points b/demoFiles/hypo1/twoG/unif/live.points diff --git a/Demo Files/hypo1/twoG/unif/phys_live.points b/demoFiles/hypo1/twoG/unif/phys_live.points diff --git a/Demo Files/hypo1/twoG/unif/post_equal_weights.dat b/demoFiles/hypo1/twoG/unif/post_equal_weights.dat diff --git a/Demo Files/hypo1/twoG/unif/post_separate.dat b/demoFiles/hypo1/twoG/unif/post_separate.dat diff --git a/Demo Files/hypo1/twoG/unif/resume.dat b/demoFiles/hypo1/twoG/unif/resume.dat diff --git a/Demo Files/hypo1/twoG/unif/stats.dat b/demoFiles/hypo1/twoG/unif/stats.dat diff --git a/Demo Files/hypo1/twoG/unif/summary.txt b/demoFiles/hypo1/twoG/unif/summary.txt diff --git a/Demo Files/hypo2/sing/sing/.txt b/demoFiles/hypo2/sing/sing/.txt diff --git a/Demo Files/hypo2/sing/sing/ev.dat b/demoFiles/hypo2/sing/sing/ev.dat diff --git a/Demo Files/hypo2/sing/sing/live.points b/demoFiles/hypo2/sing/sing/live.points diff --git a/Demo Files/hypo2/sing/sing/phys_live.points b/demoFiles/hypo2/sing/sing/phys_live.points diff --git a/Demo Files/hypo2/sing/sing/post_equal_weights.dat b/demoFiles/hypo2/sing/sing/post_equal_weights.dat diff --git a/Demo Files/hypo2/sing/sing/post_separate.dat b/demoFiles/hypo2/sing/sing/post_separate.dat diff --git a/Demo Files/hypo2/sing/sing/resume.dat b/demoFiles/hypo2/sing/sing/resume.dat diff --git a/Demo Files/hypo2/sing/sing/stats.dat b/demoFiles/hypo2/sing/sing/stats.dat diff --git a/Demo Files/hypo2/sing/sing/summary.txt b/demoFiles/hypo2/sing/sing/summary.txt diff --git a/Demo Files/hypo2/twoG/unif/ev.dat b/demoFiles/hypo2/twoG/unif/ev.dat diff --git a/Demo Files/hypo2/twoG/unif/live.points b/demoFiles/hypo2/twoG/unif/live.points diff --git a/Demo Files/hypo2/twoG/unif/phys_live.points b/demoFiles/hypo2/twoG/unif/phys_live.points diff --git a/Demo Files/hypo2/twoG/unif/resume.dat b/demoFiles/hypo2/twoG/unif/resume.dat diff --git a/Inference Demo.ipynb b/inferenceDemo.ipynb diff --git a/Main Code/Plotting/ResultsPlotting.ipynb b/mainCode/Plotting/ResultsPlotting.ipynb diff --git a/Main Code/README.md b/mainCode/README.md diff --git a/Main Code/Samples/mr_samples.txt b/mainCode/Samples/mr_samples.txt diff --git a/Main Code/Samples/ms_samples.txt b/mainCode/Samples/ms_samples.txt diff --git a/Main Code/hypothesisA.py b/mainCode/hypothesisA.py diff --git a/Main Code/hypothesisAnalyse.py b/mainCode/hypothesisAnalyse.py diff --git a/Main Code/hypothesisB.py b/mainCode/hypothesisB.py diff --git a/Main Code/models.py b/mainCode/models.py