vg
tools for working with variation graphs
Classes | Functions
haplo::haploMath Namespace Reference

Classes

struct  RRMemo
 

Functions

double logdiff (double a, double b)
 
double logsum (double a, double b)
 
double int_weighted_sum (double *values, int64_t *counts, size_t n_values)
 
double int_weighted_sum (vector< double > values, vector< int64_t > counts)
 

Function Documentation

◆ int_weighted_sum() [1/2]

double haplo::haploMath::int_weighted_sum ( double *  values,
int64_t *  counts,
size_t  n_values 
)

◆ int_weighted_sum() [2/2]

double haplo::haploMath::int_weighted_sum ( vector< double >  values,
vector< int64_t >  counts 
)

◆ logdiff()

double haplo::haploMath::logdiff ( double  a,
double  b 
)

◆ logsum()

double haplo::haploMath::logsum ( double  a,
double  b 
)