1.8.0
CCC
 
Loading...
Searching...
No Matches
gstlrn::VH Class Reference

#include <VectorHelper.hpp>

Inheritance diagram for gstlrn::VH:
gstlrn::VectorHelper

Additional Inherited Members

- Static Public Member Functions inherited from gstlrn::VectorHelper
static initVInt (Id nval, Id value=0.)
 
static initVDouble (Id nval, double value=0.)
 
static initVVDouble (Id nval1, Id nval2, double value=0.)
 
static initVVInt (Id nval1, Id nval2, Id value=0)
 
static initVInt (const Id *values, Id number)
 
static initVInt (const I32 *values, Id number)
 
static initVDouble (const double *values, Id number)
 
static initVVDouble (const double *value, Id n1, Id n2)
 
static VectorString initVString (Id ntab, char **names)
 
static void dump (const String &title, const 1 &vect, bool skipLine=true)
 
static void dump (const String &title, const 1 &vect, bool skipLine=true)
 
static void dump (const String &title, const 1 &vect, bool skipLine=true)
 
static void dump (const String &title, const VectorString &vect, bool skipLine=true)
 
static void dump (const String &title, const 1 &vect, bool skipLine=true)
 
static String toStringAsSpan (constvect vec)
 
static String toStringAsVD (const 1 &vec)
 
static String toStringAsVVD (const 1 &vec)
 
static String toStringAsVVI (const 1 &vec)
 
static String toStringAsVS (const VectorString &vec)
 
static String toStringAsVI (const 1 &vec)
 
static void dumpStats (const String &title, constvect vect, Id nmax=-1)
 
static void dumpRange (const String &title, constvect vect, Id nmax=-1)
 
static void dumpStats (const String &title, const 1 &vectin, Id nmax=-1)
 
static void dumpRange (const String &title, const 1 &vectin, Id nmax=-1)
 
static void dumpRange (const String &title, const 1 &vect)
 
static void dumpNNZ (const String &title, const 1 &vect, Id nclass=10)
 
static Id maximum (const 1 &vec, bool flagAbs=false)
 
static Id minimum (const 1 &vec, bool flagAbs=false)
 
static double maximum (const 1 &vec, bool flagAbs=false, const 1 &aux=1(), Id mode=0)
 
static double minimum (const 1 &vec, bool flagAbs=false, const 1 &aux=1(), Id mode=0)
 
static double maximum (const 1 &vec, bool flagAbs=false)
 
static double maximum (const std::vector< std::vector< double > > &vec, bool flagAbs=false)
 
static double minimum (const 1 &vec, bool flagAbs=false)
 
static Id product (const 1 &vec)
 
static double product (const 1 &vec)
 
static Id countUndefined (const 1 &vec)
 
static Id countDefined (const 1 &vec)
 
static bool hasUndefined (const 1 &vec)
 
static double extensionDiagonal (const 1 &mini, const 1 &maxi)
 
static Id count (const 1 &vec)
 
static Id cumul (const 1 &vec)
 
static Id cumul (const 1 &vec)
 
static double cumul (const 1 &vec)
 
static double cumulLog (const 1 &vec)
 
static cumulIncrement (const 1 &vec)
 
static double mean (const 1 &vec)
 
static double variance (const 1 &vec, bool scaleByN=false)
 
static double stdv (const 1 &vec, bool scaleByN=false)
 
static double norm (const 1 &vec)
 
static double normL1 (const 1 &vec)
 
static double norminf (const 1 &vec)
 
static double median (const 1 &vec)
 
static double normDistance (const 1 &veca, const 1 &vecb)
 
static double correlation (const 1 &veca, const 1 &vecb)
 
static quantiles (const 1 &vec, const 1 &probas)
 
static bool isConstant (const 1 &vect, double refval=TEST)
 
static bool isConstant (const 1 &vect, Id refval=ITEST)
 
static bool isEqual (const 1 &v1, const 1 &v2, double eps=EPSILON10)
 
static bool isEqual (const 1 &v1, const 1 &v2)
 
static bool isEqualExtended (const 1 &v1, const 1 &v2, double eps=EPSILON10, bool flagRelative=true, bool flagAbsolute=false, const String &string="")
 Function checking that two values are equal This verbose option is essentially used in tests.
 
static void sequenceInPlace (Id n, 1 &vec)
 
static sequence (Id number, Id ideb=0, Id step=1)
 
static sequence (double valFrom, double valTo, double valStep=1., double ratio=1.)
 
static void fill (1 &vec, double v, Id size=0)
 
static void fill (1 &vec, Id v, Id size=0)
 
static void fill (1 &vec, double value)
 
static void fillUndef (1 &vec, double repl)
 
static void addMultiplyConstantInPlace (double val1, const constvect in, vect out, Id iad)
 
static double innerProduct (const constvect veca, const constvect vecb)
 
static void addMultiplyVectVectInPlace (const constvect in1, const constvect in2, vect out, Id iad)
 
static void addInPlace (constvect in, vect dest)
 
static add (const 1 &veca, const 1 &vecb)
 
static void addInPlace (1 &dest, const 1 &src)
 
static void addInPlace (1 &dest, const 1 &src)
 
static void addInPlace (std::vector< double > &dest, const std::vector< double > &src)
 
static void addInPlace (const 1 &veca, const 1 &vecb, 1 &res, Id size=0)
 
static void addInPlace (const 1 &veca, const 1 &vecb, 1 &res, Id size=0)
 
static void addInPlace (const double *veca, const double *vecb, double *res, Id size)
 
static void addInPlace (const 1 &in1, const 1 &in2, 1 &outv)
 
static void addInPlace (const std::vector< std::vector< double > > &in1, const std::vector< std::vector< double > > &in2, std::vector< std::vector< double > > &outv)
 
static void addSquareInPlace (1 &dest, const 1 &src)
 
static subtract (const 1 &veca, const 1 &vecb)
 
static subtract (constvect veca, constvect vecb)
 
static subtract (const 1 &veca, const 1 &vecb)
 
static void subtractInPlace (const constvect in1, const constvect in2, vect outv)
 
static void subtractInPlace (1 &dest, const 1 &src)
 
static void subtractInPlace (1 &dest, const 1 &src)
 
static void subtractInPlace (const 1 &in1, const 1 &in2, 1 &outv)
 
static void subtractInPlace (const std::vector< std::vector< double > > &in1, const std::vector< std::vector< double > > &in2, std::vector< std::vector< double > > &outv)
 
static multiply (const 1 &veca, const 1 &vecb)
 
static void multiplyInPlace (const 1 &veca, const 1 &vecb, 1 &res)
 
static void multiplyInPlace (1 &vec, const 1 &v)
 
static divide (const 1 &veca, const 1 &vecb)
 
static void divideInPlace (const 1 &veca, const 1 &vecb, 1 &res)
 
static void divideInPlace (1 &vec, const 1 &v)
 
static void divideInPlace (std::vector< double > &vec, const std::vector< double > &v)
 
static void multiplyComplexInPlace (const 1 &vecaRe, const 1 &vecaIm, const 1 &vecbRe, const 1 &vecbIm, 1 &resRe, 1 &resIm)
 
static void multiplyConstant (1 &vec, double v)
 
static void multiplyConstantInPlace (const 1 &vec, double v, 1 &vecout)
 
static void multiplyConstantSelfInPlace (1 &vec, double v)
 
static void addMultiplyConstantInPlace (double val1, const 1 &in1, 1 &outv, Id iad)
 
static void addMultiplyConstantInPlace (double val1, const 1 &in1, 1 &outv)
 
static void divideConstant (1 &vec, double v)
 
static void copy (const 1 &vecin, 1 &vecout, Id size=-1)
 
static void copy (const 1 &vecin, 1 &vecout, Id size=-1)
 
static void copy (const 1 &inv, 1 &outv)
 
static void copy (const std::vector< std::vector< double > > &inv, std::vector< std::vector< double > > &outv)
 
static void addConstant (1 &vec, double v)
 
static void addConstant (1 &vec, Id v)
 
static void mean1AndMean2ToStdev (const 1 &mean1, const 1 &mean2, 1 &std, Id number)
 
static void normalize (1 &vec, Id norm=2)
 
static void normalize (double *tab, Id ntab)
 
static void normalizeFromGaussianDistribution (1 &vec, double mini=0., double maxi=1.)
 
static normalScore (const 1 &data, const 1 &wt=1())
 
static qnormVec (const 1 &vec)
 
static pnormVec (const 1 &vec)
 
static concatenate (const 1 &veca, const 1 &vecb)
 
static void concatenateInPlace (1 &veca, const 1 &vecb)
 
static power (const 1 &vec, double power)
 
static inverse (const 1 &vec)
 
static void power (1 &res, const constvect vec, double power)
 
static void inverse (1 &res, const constvect vec)
 
static double innerProduct (const 1 &veca, const 1 &vecb, Id size=-1)
 
static double innerProduct (const double *veca, const double *vecb, Id size)
 
static double innerProduct (const 1 &x, const 1 &y)
 
static double innerProduct (const std::vector< double > &veca, const std::vector< double > &vecb, Id size=-1)
 
static crossProduct3D (const 1 &veca, const 1 &vecb)
 
static void crossProduct3DInPlace (const double *a, const double *b, double *v)
 
static cumsum (const 1 &vecin, bool flagAddZero, bool revert=false)
 
static void cumulateInPlace (1 &vec)
 
static void cumulate (1 &veca, const 1 &vecb, double coeff=1., double addval=0.)
 
static void getMostSignificant (const 1 &vec, double tol=EPSILON6, Id nmax=-1)
 
static simulateUniform (Id n=1, double mini=0., double maxi=1.)
 
static simulateBernoulli (Id n=1, double proba=0.5, double vone=1., double velse=0.)
 
static simulateGaussian (Id n=1, double mean=0., double sigma=1.)
 
static void simulateGaussianInPlace (1 &vec, double mean=0., double sigma=1.)
 
static sampleRanks (Id ntotal, double proportion=0., Id number=0, Id seed=242141, Id optSort=0)
 
static void normalizeCodir (Id ndim, 1 &codir)
 
static bool isInList (const 1 &vec, Id item)
 
static sort (const 1 &vecin, bool ascending=true, Id size=-1)
 
static sort (const 1 &vecin, bool ascending=true, Id size=-1)
 
static void sortInPlace (1 &vecin, bool ascending=true, Id size=-1)
 
static void sortInPlace (1 &vecin, bool ascending=true, Id size=-1)
 
static bool isSorted (const 1 &vec, bool ascending=true)
 
static unique (const 1 &vecin, Id size=-1)
 
static unique (const 1 &vecin, Id size=-1)
 
static orderRanks (const 1 &vecin, bool ascending=true, Id size=-1)
 
static orderRanks (const 1 &vecin, bool ascending=true, Id size=-1)
 
static sortRanks (const 1 &vecin, bool ascending=true, Id size=-1)
 
static reorder (const 1 &vecin, const 1 &order, Id size=-1)
 
static reorder (const 1 &vecin, const 1 &order, Id size=-1)
 
static revert (const 1 &vecin)
 
static revert (const 1 &vecin)
 
static sample (const 1 &vecin, const 1 &indKeep)
 Create an output VectorDouble by selecting some indices of the Input VectorDouble 'vecin'.
 
static void arrangeInPlace (Id safe, 1 &ranks, 1 &values, bool ascending=true, Id size=-1)
 Arrange values in place (VectorDouble version)
 
static void arrangeInPlace (Id safe, 1 &ranks, 1 &values, bool ascending=true, Id size=-1)
 
static filter (const 1 &vecin, Id vmin=ITEST, Id vmax=ITEST, bool ascending=true)
 
static complement (const 1 &vec, const 1 &sel)
 
static std::pair< double, double > rangeVals (const 1 &vec)
 
static void unflattenInPlace (const std::vector< double > &vd, std::vector< std::vector< double > > &vvd)
 
static void flattenInPlace (const std::vector< std::vector< double > > &vvd, std::vector< double > &vd)
 
static flatten (const 1 &vvd)
 
static unflatten (const 1 &vd, const 1 &sizes)
 
static std::vector< double > flatten (const std::vector< std::vector< double > > &vvd)
 
static std::vector< std::vector< double > > unflatten (const std::vector< double > &vd, const 1 &sizes)
 
static void flattenInPlace (const 1 &vvd, 1 &vd)
 
static void linearCombinationInPlace (double val1, const 1 &vd1, double val2, const 1 &vd2, 1 &outv)
 
static void linearCombinationVVDInPlace (double val1, const 1 &vvd1, double val2, const 1 &vvd2, 1 &outv)
 
static double innerProduct (const std::vector< std::vector< double > > &x, const std::vector< std::vector< double > > &y)
 
static void linearCombinationVVDInPlace (double val1, const std::vector< std::vector< double > > &vvd1, double val2, const std::vector< std::vector< double > > &vvd2, std::vector< std::vector< double > > &outv)
 
static suppressTest (const 1 &vecin)
 
static void extractInPlace (const 1 &vecin, 1 &vecout, Id start)
 
static void mergeInPlace (const 1 &vecin, 1 &vecout, Id start)
 
static void transformVD (1 &tab, Id oper_choice=1)
 
static void squeezeAndStretchInPlaceForward (const 1 &vecin, 1 &vecout, double origin, double mesh, double top, double bot)
 
static void squeezeAndStretchInPlaceBackward (const 1 &vecin, 1 &vecout, double origin, double mesh, double top, double bot)
 
static Id whereMinimum (const 1 &tab)
 
static Id whereMaximum (const 1 &tab)
 
static Id whereElement (const 1 &tab, Id target)
 
static double norm (const std::vector< double > &vec)
 
static bool isIsotropic (const 1 &sampleRanks)
 
static reduceOne (const 1 &vecin, Id index)
 
static reduce (const 1 &vecin, const 1 &vindex)
 
static compress (const 1 &vecin, const 1 &vindex)
 
static void truncateDecimalsInPlace (1 &vec, Id ndec)
 
static void truncateDigitsInPlace (1 &vec, Id ndec)
 
static void simulateGaussianInPlace (std::vector< double > &vec, double mean=0., double sigma=1.)
 

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