33 int maximumDegree( 0 );
35 for(
unsigned int index( 0 ); index < degreeOfNodesVector.size(); index++ )
37 if( maximumDegree < degreeOfNodesVector[ index ] )
39 maximumDegree = degreeOfNodesVector[ index ];
43 this->m_HistogramVector.resize( maximumDegree + 1 );
45 for(
unsigned int index( 0 ); index < m_HistogramVector.size(); index++ )
47 this->m_HistogramVector[ index ] = 0;
49 this->m_TopValue = maximumDegree;
51 for(
unsigned int index( 0 ); index < degreeOfNodesVector.size(); index++ )
53 this->m_HistogramVector[ degreeOfNodesVector[ index ] ]++;
virtual ~ConnectomicsDegreeHistogram()
ConnectomicsDegreeHistogram()
virtual void ComputeFromConnectomicsNetwork(ConnectomicsNetwork *source) override
Creates a new histogram from the network source.
std::vector< int > GetDegreeOfNodes() const
Connectomics Network Class.
std::string m_Subject
Subject of the histogram as a string.