1.10.1
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 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 void capInPlace (1 &vec, double vmin=TEST, double vmax=TEST)
 
static void capInPlaceVVD (1 &vec, double vmin=TEST, double vmax=TEST)
 
static double extensionDiagonal (const 1 &mini, const 1 &maxi)
 
static Id count (const 1 &vec)
 
static double cumulLog (const 1 &vec)
 
static cumulIncrement (const 1 &vec)
 
static quantiles (const 1 &vec, const 1 &probas)
 
static bool isEqual (const 1 &v1, const 1 &v2, double eps=EPSILON10)
 
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 sequenceVD (double valFrom, double valTo, double valStep=1., double ratio=1.)
 
static void fillUndef (1 &vec, double repl)
 
static void addMultiplyConstantInPlace (double val1, const constvect in, vect out, Id iad)
 
static double innerProductCV (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 void addInPlace (const double *veca, const double *vecb, double *res, Id size)
 
static void addSquareInPlace (1 &dest, const 1 &src)
 
static subtract (constvect veca, constvect vecb)
 
static void subtractInPlace (const constvect in1, const constvect in2, vect outv)
 
static void multiplyComplexInPlace (const 1 &vecaRe, const 1 &vecaIm, const 1 &vecbRe, const 1 &vecbIm, 1 &resRe, 1 &resIm)
 
static void addMultiplyConstantInPlace (double val1, const 1 &in1, 1 &outv, Id iad)
 
static void addMultiplyConstantInPlace (double val1, const 1 &in1, 1 &outv)
 
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 mean1AndMean2ToStdev (const 1 &mean1, const 1 &mean2, 1 &std, Id number)
 
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 double *veca, const 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 1 &vd, 1 &vvd)
 
static void flattenInPlace (const 1 &vvd, 1 &vd)
 
static flatten (const 1 &vvd)
 
static unflatten (const 1 &vd, const 1 &sizes)
 
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 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 Id whereElement (const 1 &tab, Id target, Id start)
 
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)
 

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