Skip to content

Commit

Permalink
added smoothsort.h
Browse files Browse the repository at this point in the history
  • Loading branch information
gregreen committed Oct 28, 2011
1 parent 54d627e commit 5f4771a
Show file tree
Hide file tree
Showing 14 changed files with 385 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .kdev4/galstar.kdev4
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ isExecutable=true
[MakeBuilder]
Default Make Environment Profile=0
Number Of Jobs=1

[Project]
VersionControlSupport=kdevgit
Empty file modified configure
100644 → 100755
Empty file.
Empty file modified scripts/astroutils.py
100755 → 100644
Empty file.
Empty file modified scripts/comp2galfast.py
100755 → 100644
Empty file.
Empty file modified scripts/comp_stats.py
100755 → 100644
Empty file.
Empty file modified scripts/galfast_utils.py
100755 → 100644
Empty file.
Empty file modified scripts/plot_hist.py
100755 → 100644
Empty file.
Empty file modified scripts/plot_priors.py
100755 → 100644
Empty file.
Empty file modified scripts/plot_stats.py
100755 → 100644
Empty file.
Empty file modified scripts/plotpdf.py
100755 → 100644
Empty file.
Empty file modified scripts/read_galfast.py
100755 → 100644
Empty file.
Empty file modified scripts/read_sdss.py
100755 → 100644
Empty file.
6 changes: 5 additions & 1 deletion src/sampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ inline double logL_SED(const double (&M)[NBANDS], const double (&sigma)[NBANDS],
//////////////////////////////////////////////////////////////////////////////////////

double calc_logP_full(const double *const x, unsigned int N, MCMCParams &p) {
return 1;
}

double permutation_likelihood(const double *const x, unsigned int N, MCMCParams &p) {

}

Expand Down Expand Up @@ -356,7 +360,7 @@ bool sample_mcmc(TModel &model, double l, double b, TStellarData::TMagnitudes &m
return convergence;
}

bool sample_brute_force(TModel &model, double l, double b, TStellarData::TMagnitudes &mag, TStellarData &data, TMultiBinner<4> &multibinner, TStats &stats, unsigned int N_samples = 150, unsigned int N_threads=4) {
bool sample_brute_force(TModel &model, double l, double b, TStellarData::TMagnitudes &mag, TStellarData &data, TMultiBinner<4> &multibinner, TStats &stats, unsigned int N_samples=150, unsigned int N_threads=4) {
double Delta[4];
for(unsigned int i=0; i<4; i++) {
Delta[i] = (std_bin_max(i) - std_bin_min(i)) / (double)N_samples;
Expand Down
Loading

0 comments on commit 5f4771a

Please sign in to comment.