SNAP Library 3.0, Developer Reference
2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <dt.h>
Public Member Functions | |
TFlt () | |
TFlt (const double &_Val) | |
operator double () const | |
TFlt (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TFlt (TSIn &SIn, const bool &IsTxt) | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut, const bool &IsTxt) const |
void | LoadXml (const PXmlTok &XmlTok, const TStr &Nm) |
void | SaveXml (TSOut &SOut, const TStr &Nm) const |
TFlt & | operator= (const TFlt &Flt) |
TFlt & | operator= (const double &Flt) |
bool | operator== (const TFlt &Flt) const _CMPWARN |
bool | operator== (const double &Flt) const _CMPWARN |
bool | operator!= (const double &Flt) const _CMPWARN |
double | operator() () const |
TFlt & | operator+= (const double &Flt) |
TFlt & | operator-= (const double &Flt) |
TFlt & | operator*= (const double &Flt) |
TFlt & | operator/= (const double &Flt) |
TFlt | operator++ (int) |
TFlt | operator-- (int) |
int | GetMemUsed () const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
bool | IsNum () const |
bool | IsNan () const |
TStr | GetStr () const |
Static Public Member Functions | |
static double | Abs (const double &Flt) |
static int | Sign (const double &Flt) |
static int | Round (const double &Flt) |
static double | GetRnd () |
static bool | Eq6 (const double &LFlt, const double &RFlt) |
static double | GetMn (const double &Flt1, const double &Flt2) |
static double | GetMn (const double &Flt1, const double &Flt2, const double &Flt3) |
static double | GetMn (const double &Flt1, const double &Flt2, const double &Flt3, const double &Flt4) |
static double | GetMx (const double &Flt1, const double &Flt2) |
static double | GetMx (const double &Flt1, const double &Flt2, const double Flt3) |
static double | GetMx (const double &Flt1, const double &Flt2, const double Flt3, const double &Flt4) |
static double | GetInRng (const double &Val, const double &Mn, const double &Mx) |
static bool | IsNum (const double &Val) |
static bool | IsNan (const double &Val) |
static TStr | GetStr (const double &Val, const int &Width=-1, const int &Prec=-1) |
static TStr | GetStr (const TFlt &Flt, const int &Width=-1, const int &Prec=-1) |
static TStr | GetStr (const double &Val, const char *FmtStr) |
static TStr | GetStr (const double &Val, const TStr &FmtStr) |
static TStr | GetPrcStr (const double &RelVal, const double &FullVal) |
static TStr | GetKiloStr (const double &Val) |
static TStr | GetMegaStr (const double &Val) |
static TStr | GetGigaStr (const double &Val) |
Public Attributes | |
double | Val |
Static Public Attributes | |
static const double | Mn =-DBL_MAX |
static const double | Mx =+DBL_MAX |
static const double | NInf =-DBL_MAX |
static const double | PInf =+DBL_MAX |
static const double | Eps =1e-16 |
static const double | EpsHalf =1e-7 |
static TRnd | Rnd |
|
inline |
|
inline |
|
inlineexplicit |
Definition at line 1308 of file dt.h.
References TSIn::Load(), and Val.
|
inlineexplicit |
Definition at line 1310 of file dt.h.
References TStr::GetFlt(), TSIn::Load(), and Val.
|
inlinestatic |
Definition at line 1337 of file dt.h.
Referenced by TLinAlg::AssertOrtogonality(), CalcNonNegativeFactorization(), TNumericalStuff::EigSymmetricTridiag(), FltIsZero(), IsSimilarFeature(), TSparseSVD::Lanczos(), TSparseSVD::Lanczos2(), TNumericalStuff::LUDecomposition(), TLinAlg::NormL1(), TLinAlg::NormLinf(), TSparseSVD::SimpleLanczos(), and TLAMisc::ToSpVec().
|
inlinestatic |
|
inlinestatic |
Definition at line 1387 of file dt.h.
References TStr::Fmt(), and GetMegaStr().
|
inlinestatic |
|
inlinestatic |
Definition at line 1379 of file dt.h.
References TStr::Fmt().
Referenced by GetMegaStr().
|
inlinestatic |
Definition at line 1383 of file dt.h.
References TStr::Fmt(), and GetKiloStr().
Referenced by GetGigaStr().
|
inline |
|
inlinestatic |
Definition at line 1344 of file dt.h.
Referenced by TNIBs::ComputePerformanceNId(), TNIBs::GenCascade(), GetMn(), and TFltRect::Intersection().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 1351 of file dt.h.
Referenced by TNetInfBs::GenCascade(), GetMx(), TFltRect::Intersection(), TSparseSVD::Lanczos(), TSparseSVD::Lanczos2(), and TLinAlg::NormLinf().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inlinestatic |
Definition at line 1340 of file dt.h.
References TRnd::GetUniDev(), and Rnd.
|
inline |
|
inline |
Definition at line 1369 of file dt.h.
References Val.
Referenced by TXmlTok::AddArg(), TLinAlg::ConvexComb(), TEnv::GetIfArgPrefixFlt(), GetPrcStr(), TMom::GetStr(), GetStr(), TFltRect::GetStr(), TMom::GetStrByNm(), TMom::GetValVStr(), TSOut::PutFlt(), TOLx::PutFlt(), Save(), TLAMisc::SaveMatlabTFltV(), TLAMisc::SaveMatlabTFltVV(), TLAMisc::SaveMatlabTFltVVCol(), TLAMisc::SaveMatlabTFltVVMjrSubMtrx(), SaveXml(), TSFlt::SaveXml(), TLFlt::SaveXml(), TFltRect::SaveXml(), and TNumericalStuff::SymetricToTridiag().
|
static |
|
static |
Definition at line 1374 of file dt.h.
References TStr::CStr(), and GetStr().
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
Definition at line 1312 of file dt.h.
References TSIn::Load(), and Val.
Referenced by TAGMFit::Load(), TAGMFast::Load(), TCoda::Load(), TCesna::Load(), TSigmoid::Load(), and TSigmoid::TSigmoid().
Definition at line 2227 of file dt.cpp.
References TXmlObjSer::GetFltArg(), Val, and XLoadHd.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 1339 of file dt.h.
Referenced by TTmStopWatch::GetMSecInt(), TExeTm::GetSecInt(), and TTmStopWatch::GetSecInt().
|
inline |
Definition at line 1309 of file dt.h.
References TSOut::Save(), and Val.
Referenced by TJsonVal::Save(), TCascade::Save(), TAGMFit::Save(), TAGMFast::Save(), THitInfo::Save(), TCoda::Save(), TLocClustStat::Save(), TCesna::Save(), TSigmoid::Save(), TAscFlt::Save(), and TFltRect::Save().
|
inline |
Definition at line 1313 of file dt.h.
References GetStr(), TSOut::Save(), TStr::Save(), and Val.
Definition at line 2232 of file dt.cpp.
References GetStr(), Val, and XSaveBETagArg.
|
inlinestatic |
|
static |
Definition at line 1301 of file dt.h.
Referenced by FltIsZero().
|
static |
Definition at line 1297 of file dt.h.
Referenced by TCrossNet::AddEdge(), TNEANetMP::AddEdge(), TNEANet::AddEdge(), TNEANetMP::AddNode(), TNEANet::AddNode(), TMom::Def(), TCrossNet::DelEdge(), TNEANet::DelEdge(), TNEANet::DelNode(), TCesna::FindComs(), TAGMUtil::FindComsByAGM(), TAGMFast::FindComsByCV(), TCoda::FindComsByCV(), FindRoles(), TNetInfBs::GetBestEdge(), TNEANetMP::GetFltAttrDefaultE(), TCrossNet::GetFltAttrDefaultE(), TNEANet::GetFltAttrDefaultE(), TNEANetMP::GetFltAttrDefaultN(), TNEANet::GetFltAttrDefaultN(), GetMinMax(), TSnap::GetSngVec(), IsNum(), TAGMFit::Likelihood(), TAGMFast::MLEGradAscent(), TCoda::MLEGradAscent(), TCesna::MLEGradAscent(), TAGMFast::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), TAGMFast::MLENewton(), and TAGMFit::SampleTransition().
|
static |
Definition at line 1298 of file dt.h.
Referenced by TGnuPlot::AddPwrFit1(), TGnuPlot::AddPwrFit2(), TGnuPlot::AddPwrFit3(), TKronMomentsFit::EstABC(), TLocClust::FindBestCut(), TAGMUtil::FindComsByAGM(), GetMinMax(), TNetInfBs::GreedyOpt(), TNetInfBs::Init(), IsNum(), TLocClustStat::MakeExpBins(), TLocClustStat::Run(), TAGMFast::SetGraph(), TCoda::SetGraph(), and TCesna::SetGraph().
|
static |
Definition at line 1303 of file dt.h.
Referenced by TNIBs::BSG(), TNetInfBs::GenCascade(), TNIBs::GenCascade(), GetRnd(), and TNIBs::SG().
double TFlt::Val |
Definition at line 1295 of file dt.h.
Referenced by TLocClust::ApproxPageRank(), TLocClustStat::BestWhiskEdges(), TLocClustStat::BestWhiskNodes(), TAGMFit::CalcPNoComByCmtyVV(), TCoda::DumpMemberships(), GetInRng(), GetPrimHashCd(), GetSecHashCd(), GetStr(), IsNan(), IsNum(), Load(), LoadXml(), TAGMFast::MLENewton(), operator double(), operator!=(), operator()(), operator*=(), operator++(), operator+=(), operator--(), operator-=(), operator/=(), operator=(), operator==(), TSnap::PlotEigValDistr(), TSnap::PlotSngValDistr(), TAGMFit::PrintSummary(), TLAMisc::PrintTFltVV(), Save(), TNetInfBs::SaveEdgeInfo(), TNetInfBs::SaveGroundTruth(), TNIBs::SaveGroundTruthPajek(), TNIBs::SaveInferred(), TNIBs::SaveInferredEdges(), TNIBs::SaveInferredPajek(), SaveXml(), TAGMFit::SeekSwitch(), TNIBs::SG(), TTable::SimJoin(), TFlt(), and TCascade::TransProb().