Skip to content

Commit

Permalink
allow single rho entry for multi-rho sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
denisekuehnert committed Jan 29, 2019
1 parent fa772bf commit a11d8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/beast/evolution/speciation/BirthDeathSkylineModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ else if (transform_d_r_s)
for (int i = 0; i < totalIntervals; i++) {

rho[i]= //rhoSamplingChangeTimes.contains(times[i]) ? rhos[rhoSamplingChangeTimes.indexOf(times[i])] : 0.;
(rhoChanges>0 || rhoSamplingTimes.get()!=null)?
(rhoChanges>0 || rhoSamplingTimes.get()!=null && rhos.length>1)?
rhoSamplingChangeTimes.contains(times[i]) ? rhos[rhoSamplingChangeTimes.indexOf(times[i])] : 0.
: rhos[0]
;
Expand Down

0 comments on commit a11d8e3

Please sign in to comment.