| 
|   | TCutInfo () | 
|   | 
|   | TCutInfo (const int &ClustNodes, const int &EdgesInside, const int &CutSize) | 
|   | 
|   | TCutInfo (const int &ClustNodes, const int &EdgesInside, const int &CutSize, const TIntV &NIdV) | 
|   | 
|   | TCutInfo (const PUNGraph &G, const TIntV &ClustNIdV, bool TakeNIdV=false) | 
|   | 
|   | TCutInfo (const TCutInfo &CS) | 
|   | 
| int  | GetNodes () const  | 
|   | 
| int  | GetEdges () const  | 
|   | 
| int  | GetVol () const  | 
|   | 
| int  | GetCutSz () const  | 
|   | 
| double  | GetPhi () const  | 
|   | 
| double  | GetExpansion () const  | 
|   | 
| double  | GetIntDens () const  | 
|   | 
| double  | GetCutRatio (const int &GNodes) const  | 
|   | 
| double  | GetNormCut (const int &GEdges) const  | 
|   | 
| double  | GetFracDegOut (const PUNGraph &Graph, double &MxFrac, double &AvgFrac, double &MedianFrac, double &Pct9Frac, double &Flake) const  | 
|   | 
| double  | GetModular (const int &GEdges) const  | 
|   | 
| double  | GetModRat (const int &GEdges) const  | 
|   | 
| double  | GetExpEdgesIn (const int &GEdges) const  | 
|   | 
| bool  | operator< (const TCutInfo &CS) const  | 
|   | 
Definition at line 147 of file ncp.h.
 
      
        
          | double TLocClustStat::TCutInfo::GetFracDegOut  | 
          ( | 
          const PUNGraph &  | 
          Graph,  | 
        
        
           | 
           | 
          double &  | 
          MxFrac,  | 
        
        
           | 
           | 
          double &  | 
          AvgFrac,  | 
        
        
           | 
           | 
          double &  | 
          MedianFrac,  | 
        
        
           | 
           | 
          double &  | 
          Pct9Frac,  | 
        
        
           | 
           | 
          double &  | 
          Flake  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
Definition at line 245 of file ncp.cpp.
References TMom::Add(), THashSet< TKey, THashFunc >::AddKey(), CutNIdV, TMom::Def(), TVec< TVal, TSizeTy >::Empty(), TMom::GetDecile(), TUNGraph::TNodeI::GetDeg(), TMom::GetMean(), TMom::GetMedian(), TMom::GetMx(), TUNGraph::TNodeI::GetNbrNId(), TUNGraph::GetNI(), IAssert, TVec< TVal, TSizeTy >::Len(), and Nodes.
Referenced by TLocClustStat::SaveTxtInfo().
  248     MxFrac=1; AvgFrac=1; MedianFrac=1; Pct9Frac=1; Flake=1; 
 
  259     for (
int i = 0; i < NI.
GetDeg(); i++) {
 
  260       if (! InNIdSet.IsKey(NI.
GetNbrNId(i))) { EdgesOut++; }
 
  262     const double FracOut = EdgesOut/double(NI.
GetDeg());
 
  263     if (FracOut <= 0.5) { NHalfIn++; }
 
  264     FracDegMom.
Add(FracOut);
 
  267   MxFrac = FracDegMom.
GetMx();
 
  268   AvgFrac = FracDegMom.
GetMean();
 
  271   Flake = 1.0 - double(NHalfIn)/double(
CutNIdV.
Len());
 
TSizeTy Len() const 
Returns the number of elements in the vector. 
 
Node iterator. Only forward iteration (operator++) is supported. 
 
bool Empty() const 
Tests whether the vector is empty. 
 
int GetDeg() const 
Returns degree of the current node. 
 
void Add(const TFlt &Val, const TFlt &Wgt=1)
 
TNodeI GetNI(const int &NId) const 
Returns an iterator referring to the node of ID NId in the graph. 
 
int AddKey(const TKey &Key)
 
int GetNbrNId(const int &NodeN) const 
Returns ID of NodeN-th neighboring node. 
 
double GetDecile(const int &DecileN) const