This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function errorbar_LDlin_prob(data::OIdata, | |
dataname="", diam_min=1.0, diam_max=9.0, LD_min=0.01, LD_max=0.9, iter=200) | |
chisq=param->norm((abs2.(visibility_ldlin(param,data.v2_baseline))-data.v2)./data.v2_err).^2; | |
###taken from bic.jl in numericalmethods | |
function logsumexp(X) | |
# Compute log(sum(exp(X))) while avoiding numerical over/underflow. | |
return log(sum(exp.(X-maximum(X))))+maximum(X) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Generate fake light-curve | |
include("lci.jl"); | |
include("lciplot.jl"); | |
include("geometry.jl"); | |
include("oiplot.jl"); | |
include("oistars.jl"); | |
using PyPlot | |
using PyCall | |
using ROTIR.jl |