SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <xmath.h>
Static Public Member Functions | |
static double | Inv (const double &x) |
static double | Sqr (const double &x) |
static double | Sqrt (const double &x) |
static double | Log (const double &Val) |
static double | Log2 (const double &Val) |
static double | Round (const double &Val) |
static double | Round (const double &Val, int Decs) |
static int | Fac (const int &Val) |
static int | Choose (const int &N, const int &K) |
static uint | Pow2 (const int &pow) |
static double | Power (const double &Base, const double &Exponent) |
template<typename T > | |
static int | Sign (const T &Val) |
template<class T > | |
static const T & | Mx (const T &LVal, const T &RVal) |
template<class T > | |
static const T & | Mn (const T &LVal, const T &RVal) |
template<class T > | |
static const T & | Mx (const T &Val1, const T &Val2, const T &Val3) |
template<class T > | |
static const T & | Mn (const T &Val1, const T &Val2, const T &Val3) |
template<class T > | |
static const T & | Median (const T &Val1, const T &Val2, const T &Val3) |
template<class T > | |
static const T & | InRange (const T &Val, const T &Mn, const T &Mx) |
template<class T > | |
static bool | IsInRange (const T &Val, const T &Mn, const T &Mx) |
template<class T > | |
static bool | IsInEps (const T &Val, const T &Eps) |
Static Public Attributes | |
static double | E =2.71828182845904523536 |
static double | Pi =3.14159265358979323846 |
static double | LogOf2 =log(double(2)) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 83 of file xmath.h.
Referenced by TKronMomentsFit::EstABC().
|
inlinestatic |
|
inlinestatic |
Definition at line 14 of file xmath.h.
Referenced by CalcDescriptionLength(), CalcNonNegativeFactorization(), TCesna::FindComs(), TAGMFast::FindComsByCV(), and TCoda::FindComsByCV().
|
inlinestatic |
Definition at line 15 of file xmath.h.
References LogOf2.
Referenced by TGraphAnf< PGraph >::InitAnfBits().
|
inlinestatic |
|
inlinestatic |
Definition at line 36 of file xmath.h.
Referenced by TGnuPlot::AddPwrFit1(), TGnuPlot::AddPwrFit2(), TGnuPlot::AddPwrFit3(), TArtPointVisitor::BackEdge(), TBiConVisitor::BackEdge(), TLocClustStat::BagOfWhiskers(), TForestFire::BurnGeoFire(), TUndirFFire::BurnGeoFire(), TKroneckerLL::ChainGelmapRubinPlot(), TLocClust::DrawWhiskers(), TArtPointVisitor::FinishNode(), TBiConVisitor::FinishNode(), TArtPointVisitor::FwdEdge(), TSubGraphsEnum::Gen2Graphs(), TSnap::GenConfModel(), TTimeNENet::Get1stEdgeNet(), TNetInfBs::GetBestEdge(), TSnap::GetBetweennessCentr(), TSnap::GetBfsEffDiam(), TSnap::GetCmnNbrs(), TSnap::GetCmnNbrs< PUNGraph >(), TSnap::GetEdgeBridges(), TUNGraph::GetEI(), TUndirNet::GetEI(), TSnap::GetInvParticipRat(), GetMinMax(), TNodeEdgeNet< TNodeData, TEdgeData >::GetUniqEdges(), TSnap::GetWeightedBetweennessCentr(), TNcpGraphsBase::Impose(), TAGMFit::JoinCom(), TAGMFit::LeaveCom(), TTimeNet::LoadBipartite(), TTimeNENet::LoadEdgeTm(), TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ(), PlotAutoCorrelation(), TSnap::PlotShortPathDistr(), TAGMFit::SeekJoin(), TAGMFit::SeekLeave(), TAGMFit::SeekSwitch(), and TGStat::TakeSpectral().
|
inlinestatic |
|
inlinestatic |
Definition at line 32 of file xmath.h.
Referenced by TCrossNet::AddEdge(), TNEANetMP::AddEdge(), TNEGraph::AddEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::AddEdge(), TNEANet::AddEdge(), TNEANetMP::AddEdgeUnchecked(), TBigNet< TNodeData, IsDir >::AddNode(), TNGraphMP::AddNode(), TNodeNet< TNodeData >::AddNode(), TUNGraph::AddNode(), TNEANetMP::AddNode(), TNGraph::AddNode(), TNodeEDatNet< TNodeData, TEdgeData >::AddNode(), TNEGraph::AddNode(), TBPGraph::AddNode(), TNodeEdgeNet< TNodeData, TEdgeData >::AddNode(), TNEANet::AddNode(), TUndirNet::AddNode(), TDirNet::AddNode(), TNGraphMP::AddNodeUnchecked(), TNodeNet< TNodeData >::AddNodeUnchecked(), TUNGraph::AddNodeUnchecked(), TNGraph::AddNodeUnchecked(), TNodeEDatNet< TNodeData, TEdgeData >::AddNodeUnchecked(), TNodeEdgeNet< TNodeData, TEdgeData >::AddNodeUnchecked(), TNEANet::AddNodeUnchecked(), TUndirNet::AddNodeUnchecked(), TDirNet::AddNodeUnchecked(), TNEANetMP::AddNodeWithEdges(), TBigNet< TNodeData, IsDir >::AddUndirNode(), TBreathFS< PGraph >::DoBfs(), TSubGraphsEnum::Gen2Graphs(), TTimeNENet::Get1stEdgeNet(), TSnap::GetBetweennessCentr(), TSnap::GetEdgeBridges(), TUNGraph::GetEI(), TUndirNet::GetEI(), GetMinMax(), TSnap::GetSubTreeSz(), TNodeEdgeNet< TNodeData, TEdgeData >::GetUniqEdges(), TSnap::GetWeightedBetweennessCentr(), IsInRange(), TAGMFit::JoinCom(), TStatTest::KsTest(), TAGMFit::LeaveCom(), TTimeNENet::LoadEdgeTm(), TSnap::TSnapDetail::TCNMQMatrix::MergeBestQ(), TBigNet< TNodeData, IsDir >::Reserve(), TAGMFit::RunMCMC(), TLocClustStat::SaveTxtInfo(), TAGMFit::SeekJoin(), TAGMFit::SeekLeave(), TAGMFit::SeekSwitch(), TSparseRowMatrix::TSparseRowMatrix(), and TNIBs::UpdateDiff().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 25 of file xmath.h.
Referenced by TSnap::GenBaraHierar(), TKroneckerLL::GetFullGraphLL(), InitUnigramTable(), LearnEmbeddings(), and TNIBs::UpdateDiff().
|
inlinestatic |
Definition at line 16 of file xmath.h.
Referenced by TLocClustStat::BestWhiskEdges(), TSpecFunc::EntropyBias(), TAGMUtil::FindComsByAGM(), TAGMFast::FindComsByCV(), TSnap::GenBaraHierar(), TCesnaUtil::GenHoldOutPairs(), TAGMFastUtil::GenHoldOutPairs(), TAGMUtil::GenPLSeq(), TSnap::GenRndPowerLaw(), TNcpGraphsBase::PlotAvgNcp(), TLocClustStat::PlotBoltzmanCurve(), TLocClustStat::PlotNCPScatter(), TLocClustStat::PlotPhiDistr(), TLocClustStat::PlotPhiInOut(), Round(), TKronMaxLL::RoundTheta(), TLocClustStat::Run(), TGraphKey::TakeSig(), and TGraphKey::TGraphKey().
|
inlinestatic |
|
inlinestatic |
Definition at line 29 of file xmath.h.
Referenced by TCesna::GradientForWK().
|
inlinestatic |
Definition at line 12 of file xmath.h.
Referenced by TNetConstraint< PGraph >::AddConstraint(), TKroneckerLL::CalcChainR2(), TMom::Def(), TLinAlg::EuclDist2(), TSnap::GenGeoPrefAttach(), TKroneckerLL::GetApxEmptyGraphDLL(), TKroneckerLL::GetApxEmptyGraphLL(), TLocClustStat::TCutInfo::GetExpEdgesIn(), TSnap::GetHits(), TSnap::GetHitsMP(), TSnap::TSnapDetail::GetSphereDev(), TSnap::TSnapDetail::TCNMQMatrix::Init(), TSpecFunc::LinearFit(), TLinAlg::Norm2(), TLinReg::NR_lfit(), TSvd::NR_pythag(), PlotAutoCorrelation(), TKroneckerLL::TestBicCriterion(), TSigmoid::TSigmoid(), and TStatTest::TTest().
|
inlinestatic |
|
static |
Definition at line 7 of file xmath.h.
Referenced by LearnEmbeddings().
|
static |
Definition at line 9 of file xmath.h.
Referenced by TSpecFunc::Entropy(), and Log2().
|
static |
Definition at line 8 of file xmath.h.
Referenced by TSnap::GenGeoPrefAttach(), TRnd::GetBinomialDev(), and TRnd::GetPoissonDev().