SNAP Library 2.4, User Reference  2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TLocClustStat::TNodeSweep Class Reference

#include <ncp.h>

Public Member Functions

 TNodeSweep ()
 
 TNodeSweep (const int &SeedNode, const TIntV &SweepNIdV, const TFltV &PhiNIdV)
 
 TNodeSweep (const TNodeSweep &NS)
 
int Len () const
 
int GetSeed () const
 
int NId (const int i) const
 
double Phi (const int i) const
 
bool operator< (const TNodeSweep &CS) const
 

Public Attributes

TInt SeedNId
 
TIntV SweepV
 
TFltV PhiV
 

Detailed Description

Definition at line 130 of file ncp.h.

Constructor & Destructor Documentation

TLocClustStat::TNodeSweep::TNodeSweep ( )
inline

Definition at line 136 of file ncp.h.

136 {}
TLocClustStat::TNodeSweep::TNodeSweep ( const int &  SeedNode,
const TIntV SweepNIdV,
const TFltV PhiNIdV 
)
inline

Definition at line 137 of file ncp.h.

137  :
138  SeedNId(SeedNode), SweepV(SweepNIdV), PhiV(PhiNIdV) { IAssert(SweepV.Len()==PhiV.Len()); }
#define IAssert(Cond)
Definition: bd.h:262
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:535
TLocClustStat::TNodeSweep::TNodeSweep ( const TNodeSweep NS)
inline

Definition at line 139 of file ncp.h.

139 : SeedNId(NS.SeedNId), SweepV(NS.SweepV), PhiV(NS.PhiV) { }

Member Function Documentation

int TLocClustStat::TNodeSweep::GetSeed ( ) const
inline

Definition at line 141 of file ncp.h.

141 { return SeedNId; }
int TLocClustStat::TNodeSweep::Len ( ) const
inline

Definition at line 140 of file ncp.h.

140 { return SweepV.Len(); }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:535
int TLocClustStat::TNodeSweep::NId ( const int  i) const
inline

Definition at line 142 of file ncp.h.

142 { return SweepV[i]; }
bool TLocClustStat::TNodeSweep::operator< ( const TNodeSweep CS) const
inline

Definition at line 144 of file ncp.h.

144 { return Len() < CS.Len(); }
int Len() const
Definition: ncp.h:140
double TLocClustStat::TNodeSweep::Phi ( const int  i) const
inline

Definition at line 143 of file ncp.h.

143 { return PhiV[i]; }

Member Data Documentation

TFltV TLocClustStat::TNodeSweep::PhiV

Definition at line 134 of file ncp.h.

TInt TLocClustStat::TNodeSweep::SeedNId

Definition at line 132 of file ncp.h.

TIntV TLocClustStat::TNodeSweep::SweepV

Definition at line 133 of file ncp.h.


The documentation for this class was generated from the following file: