Skip to content
Snippets Groups Projects
Commit 339e479f authored by Carine Babusiaux's avatar Carine Babusiaux
Browse files

format

parent 1daf0818
No related branches found
No related tags found
No related merge requests found
BINARYS (orBIt determiNAtion with Absolute and Relative astrometRY and Spectroscopy) adjusts together: the residual abscissae from Hipparcos data (IAD or TD), the 5 Gaia astrometric parameters, and complementary observations from relative astrometry and radial velocity. BINARYS uses a gradient descent method implementing automatic differentiation thanks to the R package [TMB](https://github.com/kaskr/adcomp/wiki), and it rigorously uses the information from Hipparcos and Gaia with minimal assumptions or simplifications. BINARYS (orBIt determiNAtion with Absolute and Relative astrometRY and Spectroscopy) adjusts together: the residual abscissae from Hipparcos data (IAD or TD), the 5 Gaia astrometric parameters, and complementary observations from relative astrometry and radial velocity. BINARYS uses a gradient descent method implementing automatic differentiation thanks to the R package [TMB](https://github.com/kaskr/adcomp/wiki), and it rigorously uses the information from Hipparcos and Gaia with minimal assumptions or simplifications.
## Installation <h2>Installation</h2>
* install TMB in your R environment: - install TMB in your R environment:
R -e 'install.packages("TMB","tmbstan")' R -e 'install.packages("TMB","tmbstan")'
* compile BINARYS.cpp - compile BINARYS.cpp
compile(file.path(binarys,"BINARYS.cpp")) compile(file.path(binarys,"BINARYS.cpp"))
dyn.load(dynlib(file.path(binarys,"BINARYS"))) dyn.load(dynlib(file.path(binarys,"BINARYS")))
* use it ! - use it !
obj <- MakeADFun(data, parameters, map, DLL="BINARYS") obj <- MakeADFun(data, parameters, map, DLL="BINARYS")
...@@ -30,24 +29,24 @@ BINARYS (orBIt determiNAtion with Absolute and Relative astrometRY and Spectrosc ...@@ -30,24 +29,24 @@ BINARYS (orBIt determiNAtion with Absolute and Relative astrometRY and Spectrosc
print(rep) print(rep)
* to apply MCMC - to apply MCMC
tmbstan(obj) tmbstan(obj)
<h2>Content</h2>
## Content - BINARYS.cpp:
* BINARYS.cpp:
This file is the core of the code and returns the negative-log likelihood to be This file is the core of the code and returns the negative-log likelihood to be
minimized. minimized.
* binarys.hpp: - binarys.hpp:
This file provides constants and usefull functions for BINARYS.cpp This file provides constants and usefull functions for BINARYS.cpp
* DetailedDescription.txt: - DetailedDescription.txt:
Description of the observations, data, functions and parameters to be adjusted. Description of the observations, data, functions and parameters to be adjusted.
## Authors
<h2>Authors</h2>
Authors: Aurélia Leclerc and Carine Babusiaux Authors: Aurélia Leclerc and Carine Babusiaux
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment