|
vg
tools for working with variation graphs
|
#include <mapper.hpp>
Public Member Functions | |
| FragmentLengthDistribution (size_t maximum_sample_size, size_t reestimation_frequency, double robust_estimation_fraction) | |
| FragmentLengthDistribution (void) | |
| ~FragmentLengthDistribution () | |
| void | force_parameters (double mean, double stddev) |
| Instead of estimating anything, just use these parameters. | |
| void | register_fragment_length (int64_t length) |
| Record an observed fragment length. | |
| double | mean () const |
| Robust mean of the distribution observed so far. | |
| double | std_dev () const |
| Robust standard deviation of the distribution observed so far. | |
| bool | is_finalized () const |
| size_t | max_sample_size () const |
| size_t | curr_sample_size () const |
| Returns the number of samples that have been collected so far. | |
| multiset< double >::const_iterator | measurements_begin () const |
| multiset< double >::const_iterator | measurements_end () const |
Private Member Functions | |
| void | estimate_distribution () |
Private Attributes | |
| multiset< double > | lengths |
| bool | is_fixed = false |
| double | robust_estimation_fraction |
| size_t | maximum_sample_size |
| size_t | reestimation_frequency |
| double | mu = 0.0 |
| double | sigma = 1.0 |
| vg::FragmentLengthDistribution::FragmentLengthDistribution | ( | size_t | maximum_sample_size, |
| size_t | reestimation_frequency, | ||
| double | robust_estimation_fraction ) |
Initialize distribution
Args: maximum_sample_size sample size at which reestimation stops reestimation_frequency update running estimate after this many samples robust_estimation_fraction robustly estimate using this fraction of samples
| vg::FragmentLengthDistribution::FragmentLengthDistribution | ( | void | ) |
| vg::FragmentLengthDistribution::~FragmentLengthDistribution | ( | ) |
| size_t vg::FragmentLengthDistribution::curr_sample_size | ( | ) | const |
Returns the number of samples that have been collected so far.
|
private |
| void vg::FragmentLengthDistribution::force_parameters | ( | double | mean, |
| double | stddev ) |
Instead of estimating anything, just use these parameters.
| bool vg::FragmentLengthDistribution::is_finalized | ( | ) | const |
Returns true if the maximum sample size has been reached, which finalizes the distribution estimate
| size_t vg::FragmentLengthDistribution::max_sample_size | ( | ) | const |
Returns the max sample size up to which the distribution will continue to reestimate parameters
| double vg::FragmentLengthDistribution::mean | ( | ) | const |
Robust mean of the distribution observed so far.
| multiset< double >::const_iterator vg::FragmentLengthDistribution::measurements_begin | ( | ) | const |
Begin iterator to the measurements that the distribution has used to estimate the parameters
| multiset< double >::const_iterator vg::FragmentLengthDistribution::measurements_end | ( | ) | const |
End iterator to the measurements that the distribution has used to estimate the parameters
| void vg::FragmentLengthDistribution::register_fragment_length | ( | int64_t | length | ) |
Record an observed fragment length.
| double vg::FragmentLengthDistribution::std_dev | ( | ) | const |
Robust standard deviation of the distribution observed so far.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.17.0