type_gvector.html
来自「一个由Mike Gashler完成的机器学习方面的includes neural」· HTML 代码 · 共 79 行
HTML
79 行
<html><head><title>Generated Documentation</title></head><body> <image src="headerimage.png"> <br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GVector</b></big></big></big><br><br></td><td></td></tr></table><br><br><big><big><i>Statics (public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>Add</b></big>(double* pDest, double* pSource, int nDims)<br><div style="margin-left: 80px;"><font color=brown> Adds pSource to pDest</font></div><br>double <big><b>ComputeCorrelation</b></big>(const double* pA, const double* pB, int nDims)<br><div style="margin-left: 80px;"><font color=brown> Computes the cosine of the angle between two vectors (the origin is the vertex)</font></div><br>double <big><b>ComputeDotProduct</b></big>(const double* pOrigin, const double* pTarget, const double* pVector, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Computes the dot product of (pTarget - pOrigin) with pVector</font></div><br>double <big><b>ComputeDotProduct</b></big>(const double* pA, const double* pB, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Computes the dot product of two vectors</font></div><br>double <big><b>ComputeSquaredDistance</b></big>(double* pA, double* pB, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Computes the squared distance between two vectors</font></div><br>double <big><b>ComputeSquaredMagnitude</b></big>(const double* pVector, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Computes the squared magnitude of the vector</font></div><br>int <big><b>FindMax</b></big>(double* pVector, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Returns the index of the max value in pVector. If multiple elements have have an equivalent max value, it selects randomely from those elements</font></div><br>void <big><b>GetMostEccentricPoints</b></big>(int* pOutPoints, int nPoints, double* pVector, int nDims)<br><div style="margin-left: 80px;"><font color=brown> Returns the specified number of indexes of the most eccentric points in sorted order, where the most eccentric points are defined as the local-maxes of the local-maxes of the ..., and the local-mins of the local-mins of the ...</font></div><br>void <big><b>GetRandomVector</b></big>(double* pOutVector, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Makes a random normalized vector</font></div><br>void <big><b>InterpolateIndexes</b></big>(int nIndexes, double* pInIndexes, double* pOutIndexes, float fRatio, int nCorrIndexes, double* pCorrIndexes1, double* pCorrIndexes2)<br><div style="margin-left: 80px;"><font color=brown> Interpolates (morphs) a set of indexes from one function to another. pInIndexes, pCorrIndexes1, and pCorrIndexes2 are all expected to be in sorted order. All indexes should be >= 0 and < nDims. fRatio is the interpolation ratio such that if fRatio is zero, all indexes left unchanged, and as fRatio approaches one, the indexes are interpolated linearly such that each index in pCorrIndexes1 is interpolated linearly to the corresponding index in pCorrIndexes2. If the two extremes are not in the list of corresponding indexes, the ends may drift.</font></div><br>double <big><b>LNormComputeMagnitude</b></big>(double l, const double* pVector, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Computes the magnitude in L-Norm space (l=1 is manhattan distance, l=2 is Euclidean distance, etc.)</font></div><br>void <big><b>LNormNormalize</b></big>(double l, double* pVector, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Normalizes in L-Norm space (l=1 is manhattan distance, l=2 is Euclidean distance, etc.)</font></div><br>void <big><b>Multiply</b></big>(double* pVector, double dScalar, int nDims)<br><div style="margin-left: 80px;"><font color=brown> Multiplies pVector by dScalar</font></div><br>void <big><b>Normalize</b></big>(double* pVector, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Normalizes this vector to a magnitude of 1</font></div><br>void <big><b>SetToZero</b></big>(double* pVector, int nDims)<br><div style="margin-left: 80px;"><font color=brown> Sets the vector to all zeros</font></div><br>void <big><b>Subtract</b></big>(double* pDest, double* pSource, int nDims)<br><div style="margin-left: 80px;"><font color=brown> Subtracts pSource from pDest</font></div><br>bool <big><b>TestPivot</b></big>(double* pCenter, double* pNormal, double* pVector, int nDims)<br><div style="margin-left: 80px;"><font color=brown> Returns true iff pVector is on the positive side of a surface with a normal vector pNormal at pCenter</font></div><br></div><br><big><big><i>Statics (non-public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>GetMostEccentricMaxs</b></big>(int* pOutPoints, int nPoints, bool bMax, double* pVector, int nDims)<br></div><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GVector</b></big>(int nSize)<br><big><b>GVector</b></big>(double* pData, int nSize, bool bTakeOwnership)<br><big><b>GVector</b></big>()<br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GVector</b></big>()<br></div><br></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?