ncsa / rusty-neat

This is a Rust implementation of the next-gen sequencing toolkit (NEAT).
Other
0 stars 0 forks source link

Update Indel Model #25

Open joshfactorial opened 6 days ago

joshfactorial commented 6 days ago

src/models/indel_model.rs

Currently, the model is storing ins_lengths, ins_weights, del_lengths, del_weights.

I have implemented a new struct called DiscreteDistribution in simple_rng. This takes a list of weights and returns a random index in the list based on those weights. This struct needs to be updated to use DiscreteDistribution. We want to still store the del_lengths and ins_lengths features. We want to change the in ins_weights and del_weights to ins_distr and del_distr, and create a DiscreteDistribution object with the weights as inputs.