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
|