multovl
1.3
Multiple overlaps of genomic regions
|
#include "stat.hh"
Classes | |
class | Distr |
class | NotfoundException |
Public Member Functions | |
Stat () | |
Init to default (empty). | |
void | add (unsigned int multiplicity, double val, bool is_actual=false) |
void | evaluate () |
Evaluates the distributions inside. | |
const Distr & | distr (unsigned int multiplicity) const throw (NotfoundException) |
unsigned int | min_mult () const |
unsigned int | max_mult () const |
Utility to collect actual overlap data and the corresponding null distribution estimates (obtained by shuffling) grouped by multiplicity. The values collected are of type double although in most cases they are actually integers, but let's stay generic.
void multovl::prob::Stat::add | ( | unsigned int | multiplicity, |
double | val, | ||
bool | is_actual = false |
||
) |
Adds a value to the calling object.
multiplicity | the multiplicity of the overlap for which the total overlap length is provided. Should be >= 2 |
val | the value to be added |
is_actual | true if /value/ is an actual value, ie. before shuffling. false (the default) if /val/ is a value obtained in one of the shuffling rounds. |
const Distr& multovl::prob::Stat::distr | ( | unsigned int | multiplicity | ) | const |
throw | ( | NotfoundException | |||
) |
Look up the Distr object belonging to a given multiplicity.
multiplicity | is the multiplicity |
Stat::NotfoundException | if /multiplicity/ has not been seen |
|
inline |
|
inline |