File: LengthHistogram.hpp

package info (click to toggle)
pbseqlib 5.3.1%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,136 kB
  • sloc: cpp: 77,246; python: 570; makefile: 312; sh: 111; ansic: 9
file content (26 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _SIMULATOR_LENGTH_HISTOGRAM_HPP_
#define _SIMULATOR_LENGTH_HISTOGRAM_HPP_

#include <iostream>
#include <string>
#include <vector>

#include <alignment/simulator/CDFMap.hpp>
#include <pbdata/alignment/CmpAlignment.hpp>
#include <pbdata/utils.hpp>

class LengthHistogram
{
public:
    CDFMap<int> lengthHistogram;

    int Read(std::string &inName);

    int Read(std::ifstream &in);

    void GetRandomLength(int &length);

    void BuildFromAlignmentLengths(std::vector<int> &lengths);
};

#endif