SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
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 1401 of file dt.h.
References TSIn::Load().
|
inlineexplicit |
Definition at line 1403 of file dt.h.
References TStr::GetFlt(), and TSIn::Load().
|
inlinestatic |
Definition at line 1430 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 1480 of file dt.h.
References TStr::Fmt(), and GetMegaStr().
|
inlinestatic |
|
inlinestatic |
Definition at line 1472 of file dt.h.
References TStr::Fmt().
Referenced by GetMegaStr().
|
inlinestatic |
Definition at line 1476 of file dt.h.
References TStr::Fmt(), and GetKiloStr().
Referenced by GetGigaStr().
|
inline |
|
inlinestatic |
Definition at line 1437 of file dt.h.
Referenced by TNIBs::ComputePerformanceNId(), TNIBs::GenCascade(), GetMn(), and TFltRect::Intersection().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 1444 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 1433 of file dt.h.
References TRnd::GetUniDev().
|
inline |
|
inline |
Definition at line 1462 of file dt.h.
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 1467 of file dt.h.
References TStr::CStr(), and GetStr().
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
Definition at line 1405 of file dt.h.
References TSIn::Load().
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 1432 of file dt.h.
Referenced by TTmStopWatch::GetMSecInt(), TExeTm::GetSecInt(), and TTmStopWatch::GetSecInt().
|
inline |
Definition at line 1402 of file dt.h.
References TSOut::Save().
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 1406 of file dt.h.
References GetStr(), TSOut::Save(), and TStr::Save().
Definition at line 2232 of file dt.cpp.
References GetStr(), Val, and XSaveBETagArg.
|
inlinestatic |
|
static |
Definition at line 1394 of file dt.h.
Referenced by FltIsZero().
|
static |
Definition at line 1390 of file dt.h.
Referenced by TNEANet::AddAttributes(), TCrossNet::AddEdge(), TNEANetMP::AddEdge(), TNEANet::AddEdge(), TNEANetMP::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(), TAGMFit::Likelihood(), TAGMFast::MLEGradAscent(), TCoda::MLEGradAscent(), TCesna::MLEGradAscent(), TAGMFast::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), TAGMFast::MLENewton(), and TAGMFit::SampleTransition().
|
static |
Definition at line 1391 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 1396 of file dt.h.
Referenced by TNIBs::BSG(), TNetInfBs::GenCascade(), TNIBs::GenCascade(), and TNIBs::SG().
double TFlt::Val |
Definition at line 1388 of file dt.h.
Referenced by TLocClust::ApproxPageRank(), TLocClustStat::BestWhiskEdges(), TLocClustStat::BestWhiskNodes(), TAGMFit::CalcPNoComByCmtyVV(), TCoda::DumpMemberships(), GetInRng(), GetStr(), LoadXml(), TAGMFast::MLENewton(), operator double(), operator()(), operator=(), TAGMFit::PrintSummary(), TLAMisc::PrintTFltVV(), TNetInfBs::SaveEdgeInfo(), TNetInfBs::SaveGroundTruth(), TNIBs::SaveGroundTruthPajek(), TNIBs::SaveInferred(), TNIBs::SaveInferredEdges(), TNIBs::SaveInferredPajek(), SaveXml(), TAGMFit::SeekSwitch(), TNIBs::SG(), TTable::SimJoin(), and TCascade::TransProb().