src/MetaQuin/m_histogram.hpp
/** Construct a histogram from a vector, where the index into the
     * vector is the sample, and the value at that index is the number
     * of times that sample was observed.
     */
Construct a histogram from a vector, where the index into the
vector is the sample, and the value at that index is the number
of times that sample was observed.
Construct a histogram from a vector where the index into the vector is the sample and the value at that index is the number of times that sample was observed .
explicit Histogram(std::vector<size_type> v)
    {
        for (T i = 0; i < (T)v.size(); i++)
            if (v[i] > 0)
                m_map.insert(std::make_pair(i, v[i]));
    }
explicit Histogram ( std :: vector < size_type > v ) { for ( T i = 0 ; i < ( T ) v . size ( ) ; i ++ ) if ( v [ i ] > 0 ) m_map . insert ( std :: make_pair ( i , v [ i ] ) ) ; }
Construct a histogram from a vector, where the index into the
 vector is the sample, and the value at that index is the number
 of times that sample was observed.
Construct a histogram from a vector where the index into the vector is the sample and the value at that index is the number of times that sample was observed .