30 Smooth (Integer minwindowcount = 0,
double slope_of_bandwidth = 0.1) {
31 this->minwindowcount = minwindowcount;
32 this->slope_of_bandwidth = slope_of_bandwidth;
39 void smoothCounts(
const vector<Integer> &counts, vector<Double>& result,
int resultSize=-1);
45 int geoCutOff(
const vector<Integer> &lengths, vector<Double>& result);
50 Double phi_triangle(Integer h, Integer i){
55 return Double((1 - (
double) i/h)/h);
61 Double phi_normal(
double stderror, Integer i){
62 static const Double factor(0.39894228) ;
63 return factor / stderror * exp(- i / stderror * i / stderror / 2);
66 Integer minwindowcount;
67 double slope_of_bandwidth;