spLib
Loading...
Searching...
No Matches
<sp/vmath.h>: Math Functions for Vector

Sort and Median (<sp/vmath.h>)

void svsort (spSVector x)
 
void lvsort (spLVector x)
 
void fvsort (spFVector x)
 
void dvsort (spDVector x)
 
spSVector xsvsort (spSVector x)
 
spLVector xlvsort (spLVector x)
 
spFVector xfvsort (spFVector x)
 
spDVector xdvsort (spDVector x)
 
spLVector xsvsortidx (spSVector x)
 
spLVector xlvsortidx (spLVector x)
 
spLVector xfvsortidx (spFVector x)
 
spLVector xdvsortidx (spDVector x)
 
double svmedian (spSVector x)
 
double lvmedian (spLVector x)
 
float fvmedian (spFVector x)
 
double dvmedian (spDVector x)
 
spSVector xsvmedian (spSVector x, double *median)
 
spLVector xlvmedian (spLVector x, double *median)
 
spFVector xfvmedian (spFVector x, float *median)
 
spDVector xdvmedian (spDVector x, double *median)
 

Absolute Value (<sp/vmath.h>)

void svabs (spSVector x)
 
void lvabs (spLVector x)
 
void fvabs (spFVector x)
 
void dvabs (spDVector x)
 
spSVector xsvabs (spSVector x)
 
spLVector xlvabs (spLVector x)
 
spFVector xfvabs (spFVector x)
 
spDVector xdvabs (spDVector x)
 

Square Root (<sp/vmath.h>)

void svsqrt (spSVector x)
 
void lvsqrt (spLVector x)
 
void fvsqrt (spFVector x)
 
void dvsqrt (spDVector x)
 
spSVector xsvsqrt (spSVector x)
 
spLVector xlvsqrt (spLVector x)
 
spFVector xfvsqrt (spFVector x)
 
spDVector xdvsqrt (spDVector x)
 

Square (<sp/vmath.h>)

void svsquare (spSVector x)
 
void lvsquare (spLVector x)
 
void fvsquare (spFVector x)
 
void dvsquare (spDVector x)
 
spSVector xsvsquare (spSVector x)
 
spLVector xlvsquare (spLVector x)
 
spFVector xfvsquare (spFVector x)
 
spDVector xdvsquare (spDVector x)
 

Sign Function (<sp/vmath.h>)

void svsign (spSVector x)
 
void lvsign (spLVector x)
 
void fvsign (spFVector x)
 
void dvsign (spDVector x)
 
spSVector xsvsign (spSVector x)
 
spLVector xlvsign (spLVector x)
 
spFVector xfvsign (spFVector x)
 
spDVector xdvsign (spDVector x)
 

Cumulative Sum (<sp/vmath.h>)

void svcumsum (spSVector x)
 
void lvcumsum (spLVector x)
 
void fvcumsum (spFVector x)
 
void dvcumsum (spDVector x)
 
spSVector xsvcumsum (spSVector x)
 
spLVector xlvcumsum (spLVector x)
 
spFVector xfvcumsum (spFVector x)
 
spDVector xdvcumsum (spDVector x)
 

Cumulative Product (<sp/vmath.h>)

void svcumprod (spSVector x)
 
void lvcumprod (spLVector x)
 
void fvcumprod (spFVector x)
 
void dvcumprod (spDVector x)
 
spSVector xsvcumprod (spSVector x)
 
spLVector xlvcumprod (spLVector x)
 
spFVector xfvcumprod (spFVector x)
 
spDVector xdvcumprod (spDVector x)
 

Differences (<sp/vmath.h>)

void svcodiff (spSVector x, double coef)
 
void lvcodiff (spLVector x, double coef)
 
void fvcodiff (spFVector x, double coef)
 
void dvcodiff (spDVector x, double coef)
 
spSVector xsvcodiff (spSVector x, double coef)
 
spLVector xlvcodiff (spLVector x, double coef)
 
spFVector xfvcodiff (spFVector x, double coef)
 
spDVector xdvcodiff (spDVector x, double coef)
 
#define dvdiff(x)   dvcodiff(x, 1.0);
 
#define xdvdiff(x)   xdvcodiff(x, 1.0);
 
#define fvdiff(x)   fvcodiff(x, 1.0);
 
#define xfvdiff(x)   xfvcodiff(x, 1.0);
 
#define lvdiff(x)   lvcodiff(x, 1.0);
 
#define xlvdiff(x)   xlvcodiff(x, 1.0);
 
#define svdiff(x)   svcodiff(x, 1.0);
 
#define xsvdiff(x)   xsvcodiff(x, 1.0);
 

Sum (<sp/vmath.h>)

long svsum (spSVector x)
 
long lvsum (spLVector x)
 
float fvsum (spFVector x)
 
double dvsum (spDVector x)
 
long svisum (spSVector x)
 
long lvisum (spLVector x)
 
float fvisum (spFVector x)
 
double dvisum (spDVector x)
 
long svsqsum (spSVector x)
 
long lvsqsum (spLVector x)
 
float fvsqsum (spFVector x)
 
double dvsqsum (spDVector x)
 
long svabssum (spSVector x)
 
long lvabssum (spLVector x)
 
float fvabssum (spFVector x)
 
double dvabssum (spDVector x)
 

Product (<sp/vmath.h>)

long svprod (spSVector x)
 
long lvprod (spLVector x)
 
float fvprod (spFVector x)
 
double dvprod (spDVector x)
 
long svriprod (spSVector x, long *oiprod)
 
long lvriprod (spLVector x, long *oiprod)
 
float fvriprod (spFVector x, float *oiprod)
 
double dvriprod (spDVector x, double *oiprod)
 

Norm (<sp/vmath.h>)

double svnorm (spSVector x, long p)
 
double lvnorm (spLVector x, long p)
 
float fvnorm (spFVector x, long p)
 
double dvnorm (spDVector x, long p)
 

Dot Product (<sp/vmath.h>)

long svdot (spSVector x, spSVector y)
 
long lvdot (spLVector x, spLVector y)
 
float fvdot (spFVector x, spFVector y)
 
double dvdot (spDVector x, spDVector y)
 
void svcplxdot (spSVector x, spSVector y, long *re, long *im)
 
void lvcplxdot (spLVector x, spLVector y, long *re, long *im)
 
void fvcplxdot (spFVector x, spFVector y, float *re, float *im)
 
void dvcplxdot (spDVector x, spDVector y, double *re, double *im)
 

Mean and Variance (<sp/vmath.h>)

double svvar (spSVector x, double *mean)
 
double lvvar (spLVector x, double *mean)
 
float fvvar (spFVector x, float *mean)
 
double dvvar (spDVector x, double *mean)
 
double svstd (spSVector x, double *mean)
 
double lvstd (spLVector x, double *mean)
 
float fvstd (spFVector x, float *mean)
 
double dvstd (spDVector x, double *mean)
 
#define dvmean(x)   (dvsum(x) / (double)x->length)
 
#define fvmean(x)   (fvsum(x) / (float)x->length)
 
#define lvmean(x)   ((double)lvsum(x) / (double)x->length)
 
#define svmean(x)   ((double)svsum(x) / (double)x->length)
 

Minimum and Maximum (<sp/vmath.h>)

short svmin (spSVector x, long *index)
 
long lvmin (spLVector x, long *index)
 
float fvmin (spFVector x, long *index)
 
double dvmin (spDVector x, long *index)
 
short svmax (spSVector x, long *index)
 
long lvmax (spLVector x, long *index)
 
float fvmax (spFVector x, long *index)
 
double dvmax (spDVector x, long *index)
 
void svscmin (spSVector x, short a)
 
void lvscmin (spLVector x, long a)
 
void fvscmin (spFVector x, float a)
 
void dvscmin (spDVector x, double a)
 
void svscmax (spSVector x, short a)
 
void lvscmax (spLVector x, long a)
 
void fvscmax (spFVector x, float a)
 
void dvscmax (spDVector x, double a)
 
void svelmin (spSVector x, spSVector y)
 
void lvelmin (spLVector x, spLVector y)
 
void fvelmin (spFVector x, spFVector y)
 
void dvelmin (spDVector x, spDVector y)
 
void svelmax (spSVector x, spSVector y)
 
void lvelmax (spLVector x, spLVector y)
 
void fvelmax (spFVector x, spFVector y)
 
void dvelmax (spDVector x, spDVector y)
 

Zero-Crossing Count (<sp/vmath.h>)

long svzerocross (spSVector x, int slope_sign)
 
long lvzerocross (spLVector x, int slope_sign)
 
long fvzerocross (spFVector x, int slope_sign)
 
long dvzerocross (spDVector x, int slope_sign)
 

Phase Angle (<sp/vmath.h>)

void fvangle (spFVector x)
 
spFVector xfvangle (spFVector x)
 
void dvangle (spDVector x)
 
spDVector xdvangle (spDVector x)
 

Trigonometric functions (<sp/vmath.h>)

void fvcos (spFVector x)
 
void dvcos (spDVector x)
 
spFVector xfvcos (spFVector x)
 
spDVector xdvcos (spDVector x)
 
void fvsin (spFVector x)
 
void dvsin (spDVector x)
 
spFVector xfvsin (spFVector x)
 
spDVector xdvsin (spDVector x)
 
void fvtan (spFVector x)
 
void dvtan (spDVector x)
 
spFVector xfvtan (spFVector x)
 
spDVector xdvtan (spDVector x)
 
void fvcosh (spFVector x)
 
void dvcosh (spDVector x)
 
spFVector xfvcosh (spFVector x)
 
spDVector xdvcosh (spDVector x)
 
void fvsinh (spFVector x)
 
void dvsinh (spDVector x)
 
spFVector xfvsinh (spFVector x)
 
spDVector xdvsinh (spDVector x)
 
void fvtanh (spFVector x)
 
void dvtanh (spDVector x)
 
spFVector xfvtanh (spFVector x)
 
spDVector xdvtanh (spDVector x)
 
void fvacos (spFVector x)
 
void dvacos (spDVector x)
 
spFVector xfvacos (spFVector x)
 
spDVector xdvacos (spDVector x)
 
void fvasin (spFVector x)
 
void dvasin (spDVector x)
 
spFVector xfvasin (spFVector x)
 
spDVector xdvasin (spDVector x)
 
void fvatan (spFVector x)
 
void dvatan (spDVector x)
 
spFVector xfvatan (spFVector x)
 
spDVector xdvatan (spDVector x)
 
void fvatan2 (spFVector y, spFVector x, spBool reverse)
 
void dvatan2 (spDVector y, spDVector x, spBool reverse)
 
spFVector xfvatan2 (spFVector y, spFVector x)
 
spDVector xdvatan2 (spDVector y, spDVector x)
 

Exponents and Logarithms (<sp/vmath.h>)

void fvexp (spFVector x)
 
void dvexp (spDVector x)
 
spFVector xfvexp (spFVector x)
 
spDVector xdvexp (spDVector x)
 
void fvlog (spFVector x)
 
void dvlog (spDVector x)
 
spFVector xfvlog (spFVector x)
 
spDVector xdvlog (spDVector x)
 
void fvlog10 (spFVector x)
 
void dvlog10 (spDVector x)
 
spFVector xfvlog10 (spFVector x)
 
spDVector xdvlog10 (spDVector x)
 
void fvdecibela (spFVector x)
 
void dvdecibela (spDVector x)
 
spFVector xfvdecibela (spFVector x)
 
spDVector xdvdecibela (spDVector x)
 
void fvdecibelp (spFVector x)
 
void dvdecibelp (spDVector x)
 
spFVector xfvdecibelp (spFVector x)
 
spDVector xdvdecibelp (spDVector x)
 
void fvundecibelp (spFVector x)
 
void dvundecibelp (spDVector x)
 
spFVector xfvundecibelp (spFVector x)
 
spDVector xdvundecibelp (spDVector x)
 
void fvdecibel (spFVector x)
 
void dvdecibel (spDVector x)
 
spFVector xfvdecibel (spFVector x)
 
spDVector xdvdecibel (spDVector x)
 
void fvundecibel (spFVector x)
 
void dvundecibel (spDVector x)
 
spFVector xfvundecibel (spFVector x)
 
spDVector xdvundecibel (spDVector x)
 

Random Number (<sp/vmath.h>)

void fvrandun (spFVector x)
 
void dvrandun (spDVector x)
 
spFVector xfvrandunul (spPlugin *plugin, long length, spBool unlock_flag)
 
spDVector xdvrandunul (spPlugin *plugin, long length, spBool unlock_flag)
 
spFVector xfvrandun (long length)
 
spDVector xdvrandun (long length)
 
void fvgauss (spFVector x, float mu, float sigma)
 
void dvgauss (spDVector x, double mu, double sigma)
 
spFVector xfvgaussul (spPlugin *plugin, long length, float mu, float sigma, spBool unlock_flag)
 
spDVector xdvgaussul (spPlugin *plugin, long length, double mu, double sigma, spBool unlock_flag)
 
spFVector xfvgauss (long length, float mu, float sigma)
 
spDVector xdvgauss (long length, double mu, double sigma)
 
void fvrandn (spFVector x)
 
void dvrandn (spDVector x)
 
spFVector xfvrandnul (spPlugin *plugin, long length, spBool unlock_flag)
 
spDVector xdvrandnul (spPlugin *plugin, long length, spBool unlock_flag)
 
spFVector xfvrandn (long length)
 
spDVector xdvrandn (long length)
 

Detailed Description

#include <sp/vmath.h>

Macro Definition Documentation

◆ dvdiff

#define dvdiff ( x)    dvcodiff(x, 1.0);

Calculates the differences between the elements of x . For example, the k-th element of the differences is x->data[k + 1] - x->data[k]. The final element is calculated by regarding x->data[k + 1] = 0.

◆ xdvdiff

#define xdvdiff ( x)    xdvcodiff(x, 1.0);

Creates a new vector containing the differences between the elements of x . For example, the k-th element of the new vector is x->data[k + 1] - x->data[k]. The number of elements of the new vector is x->length - 1.

◆ dvmean

#define dvmean ( x)    (dvsum(x) / (double)x->length)

Calculates the mean of the real elements of x .

◆ fvdiff

#define fvdiff ( x)    fvcodiff(x, 1.0);

Calculates the differences between the elements of x . For example, the k-th element of the differences is x->data[k + 1] - x->data[k]. The final element is calculated by regarding x->data[k + 1] = 0.

◆ xfvdiff

#define xfvdiff ( x)    xfvcodiff(x, 1.0);

Creates a new vector containing the differences between the elements of x . For example, the k-th element of the new vector is x->data[k + 1] - x->data[k]. The number of elements of the new vector is x->length - 1.

◆ fvmean

#define fvmean ( x)    (fvsum(x) / (float)x->length)

Calculates the mean of the real elements of x .

◆ lvdiff

#define lvdiff ( x)    lvcodiff(x, 1.0);

Calculates the differences between the elements of x . For example, the k-th element of the differences is x->data[k + 1] - x->data[k]. The final element is calculated by regarding x->data[k + 1] = 0.

◆ xlvdiff

#define xlvdiff ( x)    xlvcodiff(x, 1.0);

Creates a new vector containing the differences between the elements of x . For example, the k-th element of the new vector is x->data[k + 1] - x->data[k]. The number of elements of the new vector is x->length - 1.

◆ lvmean

#define lvmean ( x)    ((double)lvsum(x) / (double)x->length)

Calculates the mean of the real elements of x .

◆ svdiff

#define svdiff ( x)    svcodiff(x, 1.0);

Calculates the differences between the elements of x . For example, the k-th element of the differences is x->data[k + 1] - x->data[k]. The final element is calculated by regarding x->data[k + 1] = 0.

◆ xsvdiff

#define xsvdiff ( x)    xsvcodiff(x, 1.0);

Creates a new vector containing the differences between the elements of x . For example, the k-th element of the new vector is x->data[k + 1] - x->data[k]. The number of elements of the new vector is x->length - 1.

◆ svmean

#define svmean ( x)    ((double)svsum(x) / (double)x->length)

Calculates the mean of the real elements of x .

Function Documentation

◆ svabs()

void svabs ( spSVector x)

Calculates the absolute value of each element of x . If the imaginary part of x exists, it will be disposed.

◆ lvabs()

void lvabs ( spLVector x)

Calculates the absolute value of each element of x . If the imaginary part of x exists, it will be disposed.

◆ fvabs()

void fvabs ( spFVector x)

Calculates the absolute value of each element of x . If the imaginary part of x exists, it will be disposed.

◆ dvabs()

void dvabs ( spDVector x)

Calculates the absolute value of each element of x . If the imaginary part of x exists, it will be disposed.

◆ xsvabs()

spSVector xsvabs ( spSVector x)

Creates a new vector whose each element is the absolute value of the corresponding element of x .

◆ xlvabs()

spLVector xlvabs ( spLVector x)

Creates a new vector whose each element is the absolute value of the corresponding element of x .

◆ xfvabs()

spFVector xfvabs ( spFVector x)

Creates a new vector whose each element is the absolute value of the corresponding element of x .

◆ xdvabs()

spDVector xdvabs ( spDVector x)

Creates a new vector whose each element is the absolute value of the corresponding element of x .

◆ svsqrt()

void svsqrt ( spSVector x)

Calculates the square root of each element of x .

◆ lvsqrt()

void lvsqrt ( spLVector x)

Calculates the square root of each element of x .

◆ fvsqrt()

void fvsqrt ( spFVector x)

Calculates the square root of each element of x .

◆ dvsqrt()

void dvsqrt ( spDVector x)

Calculates the square root of each element of x .

◆ xsvsqrt()

spSVector xsvsqrt ( spSVector x)

Creates a new vector whose each element is the square root of the corresponding element of x .

◆ xlvsqrt()

spLVector xlvsqrt ( spLVector x)

Creates a new vector whose each element is the square root of the corresponding element of x .

◆ xfvsqrt()

spFVector xfvsqrt ( spFVector x)

Creates a new vector whose each element is the square root of the corresponding element of x .

◆ xdvsqrt()

spDVector xdvsqrt ( spDVector x)

Creates a new vector whose each element is the square root of the corresponding element of x .

◆ svsquare()

void svsquare ( spSVector x)

Calculates |x|^2 of each element of x .

◆ lvsquare()

void lvsquare ( spLVector x)

Calculates |x|^2 of each element of x .

◆ fvsquare()

void fvsquare ( spFVector x)

Calculates |x|^2 of each element of x .

◆ dvsquare()

void dvsquare ( spDVector x)

Calculates |x|^2 of each element of x .

◆ xsvsquare()

spSVector xsvsquare ( spSVector x)

Creates a new vector whose each element is |x|^2 of the corresponding element of x .

◆ xlvsquare()

spLVector xlvsquare ( spLVector x)

Creates a new vector whose each element is |x|^2 of the corresponding element of x .

◆ xfvsquare()

spFVector xfvsquare ( spFVector x)

Creates a new vector whose each element is |x|^2 of the corresponding element of x .

◆ xdvsquare()

spDVector xdvsquare ( spDVector x)

Creates a new vector whose each element is |x|^2 of the corresponding element of x .

◆ svsign()

void svsign ( spSVector x)

Calculates the sign function of each element of x . The sign function returns 1 if the element's value is greater than 0, 0 if that is equal to 0, or -1 if that is less than 0.

◆ lvsign()

void lvsign ( spLVector x)

Calculates the sign function of each element of x . The sign function returns 1 if the element's value is greater than 0, 0 if that is equal to 0, or -1 if that is less than 0.

◆ fvsign()

void fvsign ( spFVector x)

Calculates the sign function of each element of x . The sign function returns 1 if the element's value is greater than 0, 0 if that is equal to 0, or -1 if that is less than 0.

◆ dvsign()

void dvsign ( spDVector x)

Calculates the sign function of each element of x . The sign function returns 1 if the element's value is greater than 0, 0 if that is equal to 0, or -1 if that is less than 0.

◆ xsvsign()

spSVector xsvsign ( spSVector x)

Creates a new vector whose each element is output of the sign function of the corresponding element of x . The sign function returns 1 if the element's value is greater than 0, 0 if that is equal to 0, or -1 if that is less than 0.

◆ xlvsign()

spLVector xlvsign ( spLVector x)

Creates a new vector whose each element is output of the sign function of the corresponding element of x . The sign function returns 1 if the element's value is greater than 0, 0 if that is equal to 0, or -1 if that is less than 0.

◆ xfvsign()

spFVector xfvsign ( spFVector x)

Creates a new vector whose each element is output of the sign function of the corresponding element of x . The sign function returns 1 if the element's value is greater than 0, 0 if that is equal to 0, or -1 if that is less than 0.

◆ xdvsign()

spDVector xdvsign ( spDVector x)

Creates a new vector whose each element is output of the sign function of the corresponding element of x . The sign function returns 1 if the element's value is greater than 0, 0 if that is equal to 0, or -1 if that is less than 0.

◆ svcumsum()

void svcumsum ( spSVector x)

Calculates the cumulative sum of the elements of x .

◆ lvcumsum()

void lvcumsum ( spLVector x)

Calculates the cumulative sum of the elements of x .

◆ fvcumsum()

void fvcumsum ( spFVector x)

Calculates the cumulative sum of the elements of x .

◆ dvcumsum()

void dvcumsum ( spDVector x)

Calculates the cumulative sum of the elements of x .

◆ xsvcumsum()

spSVector xsvcumsum ( spSVector x)

Creates a new vector containing the cumulative sum of the elements of x .

◆ xlvcumsum()

spLVector xlvcumsum ( spLVector x)

Creates a new vector containing the cumulative sum of the elements of x .

◆ xfvcumsum()

spFVector xfvcumsum ( spFVector x)

Creates a new vector containing the cumulative sum of the elements of x .

◆ xdvcumsum()

spDVector xdvcumsum ( spDVector x)

Creates a new vector containing the cumulative sum of the elements of x .

◆ svcumprod()

void svcumprod ( spSVector x)

Calculates the cumulative product of the elements of x .

◆ lvcumprod()

void lvcumprod ( spLVector x)

Calculates the cumulative product of the elements of x .

◆ fvcumprod()

void fvcumprod ( spFVector x)

Calculates the cumulative product of the elements of x .

◆ dvcumprod()

void dvcumprod ( spDVector x)

Calculates the cumulative product of the elements of x .

◆ xsvcumprod()

spSVector xsvcumprod ( spSVector x)

Creates a new vector containing the cumulative product of the elements of x .

◆ xlvcumprod()

spLVector xlvcumprod ( spLVector x)

Creates a new vector containing the cumulative product of the elements of x .

◆ xfvcumprod()

spFVector xfvcumprod ( spFVector x)

Creates a new vector containing the cumulative product of the elements of x .

◆ xdvcumprod()

spDVector xdvcumprod ( spDVector x)

Creates a new vector containing the cumulative product of the elements of x .

◆ svcodiff()

void svcodiff ( spSVector x,
double coef )

Calculates the differences between the elements of x using coef as a weighting factor. For example, the k-th element of the differences is x->data[k + 1] - coef * x->data[k]. The final element is calculated by regarding x->data[k + 1] = 0.

◆ lvcodiff()

void lvcodiff ( spLVector x,
double coef )

Calculates the differences between the elements of x using coef as a weighting factor. For example, the k-th element of the differences is x->data[k + 1] - coef * x->data[k]. The final element is calculated by regarding x->data[k + 1] = 0.

◆ fvcodiff()

void fvcodiff ( spFVector x,
double coef )

Calculates the differences between the elements of x using coef as a weighting factor. For example, the k-th element of the differences is x->data[k + 1] - coef * x->data[k]. The final element is calculated by regarding x->data[k + 1] = 0.

◆ dvcodiff()

void dvcodiff ( spDVector x,
double coef )

Calculates the differences between the elements of x using coef as a weighting factor. For example, the k-th element of the differences is x->data[k + 1] - coef * x->data[k]. The final element is calculated by regarding x->data[k + 1] = 0.

◆ xsvcodiff()

spSVector xsvcodiff ( spSVector x,
double coef )

Creates a new vector containing the differences between the elements of x using coef as a weighting factor. For example, the k-th element of the new vector is x->data[k + 1] - coef * x->data[k]. The number of elements of the new vector is x->length - 1.

◆ xlvcodiff()

spLVector xlvcodiff ( spLVector x,
double coef )

Creates a new vector containing the differences between the elements of x using coef as a weighting factor. For example, the k-th element of the new vector is x->data[k + 1] - coef * x->data[k]. The number of elements of the new vector is x->length - 1.

◆ xfvcodiff()

spFVector xfvcodiff ( spFVector x,
double coef )

Creates a new vector containing the differences between the elements of x using coef as a weighting factor. For example, the k-th element of the new vector is x->data[k + 1] - coef * x->data[k]. The number of elements of the new vector is x->length - 1.

◆ xdvcodiff()

spDVector xdvcodiff ( spDVector x,
double coef )

Creates a new vector containing the differences between the elements of x using coef as a weighting factor. For example, the k-th element of the new vector is x->data[k + 1] - coef * x->data[k]. The number of elements of the new vector is x->length - 1.

◆ svsum()

long svsum ( spSVector x)

Calculates the sum of the real elements of x .

◆ lvsum()

long lvsum ( spLVector x)

Calculates the sum of the real elements of x .

◆ fvsum()

float fvsum ( spFVector x)

Calculates the sum of the real elements of x .

◆ dvsum()

double dvsum ( spDVector x)

Calculates the sum of the real elements of x .

◆ svisum()

long svisum ( spSVector x)

Calculates the sum of the imaginary elements of x .

◆ lvisum()

long lvisum ( spLVector x)

Calculates the sum of the imaginary elements of x .

◆ fvisum()

float fvisum ( spFVector x)

Calculates the sum of the imaginary elements of x .

◆ dvisum()

double dvisum ( spDVector x)

Calculates the sum of the imaginary elements of x .

◆ svsqsum()

long svsqsum ( spSVector x)

Calculates the sum of the absolute square elements of x .

◆ lvsqsum()

long lvsqsum ( spLVector x)

Calculates the sum of the absolute square elements of x .

◆ fvsqsum()

float fvsqsum ( spFVector x)

Calculates the sum of the absolute square elements of x .

◆ dvsqsum()

double dvsqsum ( spDVector x)

Calculates the sum of the absolute square elements of x .

◆ svabssum()

long svabssum ( spSVector x)

Calculates the sum of the absolute elements of x .

◆ lvabssum()

long lvabssum ( spLVector x)

Calculates the sum of the absolute elements of x .

◆ fvabssum()

float fvabssum ( spFVector x)

Calculates the sum of the absolute elements of x .

◆ dvabssum()

double dvabssum ( spDVector x)

Calculates the sum of the absolute elements of x .

◆ svprod()

long svprod ( spSVector x)

Calculates the product of the real elements of x .

◆ lvprod()

long lvprod ( spLVector x)

Calculates the product of the real elements of x .

◆ fvprod()

float fvprod ( spFVector x)

Calculates the product of the real elements of x .

◆ dvprod()

double dvprod ( spDVector x)

Calculates the product of the real elements of x .

◆ svriprod()

long svriprod ( spSVector x,
long * oiprod )

Calculates the product of the real and imaginary elements of x .

◆ lvriprod()

long lvriprod ( spLVector x,
long * oiprod )

Calculates the product of the real and imaginary elements of x .

◆ fvriprod()

float fvriprod ( spFVector x,
float * oiprod )

Calculates the product of the real and imaginary elements of x .

◆ dvriprod()

double dvriprod ( spDVector x,
double * oiprod )

Calculates the product of the real and imaginary elements of x .

◆ svnorm()

double svnorm ( spSVector x,
long p )

Calculates the norm of the input vector x . The value of p must be greater than or equal to 1 except that p = 0: the default Euclidean norm which corresponds to p = 2, and p = -1: the infinity norm.

Parameters
[in]xThe input vector.
[in]pThe number which is greater than or equal to -1 corresponding to the norm type.
Returns
The calculated norm.

◆ lvnorm()

double lvnorm ( spLVector x,
long p )

Calculates the norm of the input vector x . The value of p must be greater than or equal to 1 except that p = 0: the default Euclidean norm which corresponds to p = 2, and p = -1: the infinity norm.

Parameters
[in]xThe input vector.
[in]pThe number which is greater than or equal to -1 corresponding to the norm type.
Returns
The calculated norm.

◆ fvnorm()

float fvnorm ( spFVector x,
long p )

Calculates the norm of the input vector x . The value of p must be greater than or equal to 1 except that p = 0: the default Euclidean norm which corresponds to p = 2, and p = -1: the infinity norm.

Parameters
[in]xThe input vector.
[in]pThe number which is greater than or equal to -1 corresponding to the norm type.
Returns
The calculated norm.

◆ dvnorm()

double dvnorm ( spDVector x,
long p )

Calculates the norm of the input vector x . The value of p must be greater than or equal to 1 except that p = 0: the default Euclidean norm which corresponds to p = 2, and p = -1: the infinity norm.

Parameters
[in]xThe input vector.
[in]pThe number which is greater than or equal to -1 corresponding to the norm type.
Returns
The calculated norm.

◆ svdot()

long svdot ( spSVector x,
spSVector y )

Calculates the scalar dot product of x and y for the real part.

◆ lvdot()

long lvdot ( spLVector x,
spLVector y )

Calculates the scalar dot product of x and y for the real part.

◆ fvdot()

float fvdot ( spFVector x,
spFVector y )

Calculates the scalar dot product of x and y for the real part.

◆ dvdot()

double dvdot ( spDVector x,
spDVector y )

Calculates the scalar dot product of x and y for the real part.

◆ svcplxdot()

void svcplxdot ( spSVector x,
spSVector y,
long * re,
long * im )

Calculates the scalar dot product of x and y for complex data.

◆ lvcplxdot()

void lvcplxdot ( spLVector x,
spLVector y,
long * re,
long * im )

Calculates the scalar dot product of x and y for complex data.

◆ fvcplxdot()

void fvcplxdot ( spFVector x,
spFVector y,
float * re,
float * im )

Calculates the scalar dot product of x and y for complex data.

◆ dvcplxdot()

void dvcplxdot ( spDVector x,
spDVector y,
double * re,
double * im )

Calculates the scalar dot product of x and y for complex data.

◆ svvar()

double svvar ( spSVector x,
double * mean )

Calculates the variance of the real elements of x .

Parameters
[in]xThe input vector.
[out]meanThe address of a variable to receive the mean of real elements of x. This can be NULL.
Returns
Returns the value of the variance.

◆ lvvar()

double lvvar ( spLVector x,
double * mean )

Calculates the variance of the real elements of x .

Parameters
[in]xThe input vector.
[out]meanThe address of a variable to receive the mean of real elements of x. This can be NULL.
Returns
Returns the value of the variance.

◆ fvvar()

float fvvar ( spFVector x,
float * mean )

Calculates the variance of the real elements of x .

Parameters
[in]xThe input vector.
[out]meanThe address of a variable to receive the mean of real elements of x. This can be NULL.
Returns
Returns the value of the variance.

◆ dvvar()

double dvvar ( spDVector x,
double * mean )

Calculates the variance of the real elements of x .

Parameters
[in]xThe input vector.
[out]meanThe address of a variable to receive the mean of real elements of x. This can be NULL.
Returns
Returns the value of the variance.

◆ svstd()

double svstd ( spSVector x,
double * mean )

Calculates the standard deviation of the real elements of x .

Parameters
[in]xThe input vector.
[out]meanThe address of a variable to receive the mean of real elements of x. This can be NULL.
Returns
Returns the value of the standard deviation.

◆ lvstd()

double lvstd ( spLVector x,
double * mean )

Calculates the standard deviation of the real elements of x .

Parameters
[in]xThe input vector.
[out]meanThe address of a variable to receive the mean of real elements of x. This can be NULL.
Returns
Returns the value of the standard deviation.

◆ fvstd()

float fvstd ( spFVector x,
float * mean )

Calculates the standard deviation of the real elements of x .

Parameters
[in]xThe input vector.
[out]meanThe address of a variable to receive the mean of real elements of x. This can be NULL.
Returns
Returns the value of the standard deviation.

◆ dvstd()

double dvstd ( spDVector x,
double * mean )

Calculates the standard deviation of the real elements of x .

Parameters
[in]xThe input vector.
[out]meanThe address of a variable to receive the mean of real elements of x. This can be NULL.
Returns
Returns the value of the standard deviation.

◆ svmin()

short svmin ( spSVector x,
long * index )

Finds the smallest real elements of x .

Parameters
[in]xThe input vector.
[in]indexThe address of a variable to receive the index of the smallest element. This can be NULL.
Returns
Returns the smallest value.

◆ lvmin()

long lvmin ( spLVector x,
long * index )

Finds the smallest real elements of x .

Parameters
[in]xThe input vector.
[in]indexThe address of a variable to receive the index of the smallest element. This can be NULL.
Returns
Returns the smallest value.

◆ fvmin()

float fvmin ( spFVector x,
long * index )

Finds the smallest real elements of x .

Parameters
[in]xThe input vector.
[in]indexThe address of a variable to receive the index of the smallest element. This can be NULL.
Returns
Returns the smallest value.

◆ dvmin()

double dvmin ( spDVector x,
long * index )

Finds the smallest real elements of x .

Parameters
[in]xThe input vector.
[in]indexThe address of a variable to receive the index of the smallest element. This can be NULL.
Returns
Returns the smallest value.

◆ svmax()

short svmax ( spSVector x,
long * index )

Finds the largest real elements of x .

Parameters
[in]xThe input vector.
[in]indexThe address of a variable to receive the index of the largest element. This can be NULL.
Returns
Returns the largest value.

◆ lvmax()

long lvmax ( spLVector x,
long * index )

Finds the largest real elements of x .

Parameters
[in]xThe input vector.
[in]indexThe address of a variable to receive the index of the largest element. This can be NULL.
Returns
Returns the largest value.

◆ fvmax()

float fvmax ( spFVector x,
long * index )

Finds the largest real elements of x .

Parameters
[in]xThe input vector.
[in]indexThe address of a variable to receive the index of the largest element. This can be NULL.
Returns
Returns the largest value.

◆ dvmax()

double dvmax ( spDVector x,
long * index )

Finds the largest real elements of x .

Parameters
[in]xThe input vector.
[in]indexThe address of a variable to receive the index of the largest element. This can be NULL.
Returns
Returns the largest value.

◆ svscmin()

void svscmin ( spSVector x,
short a )

Takes the smallest value between each element of x and a .

◆ lvscmin()

void lvscmin ( spLVector x,
long a )

Takes the smallest value between each element of x and a .

◆ fvscmin()

void fvscmin ( spFVector x,
float a )

Takes the smallest value between each element of x and a .

◆ dvscmin()

void dvscmin ( spDVector x,
double a )

Takes the smallest value between each element of x and a .

◆ svscmax()

void svscmax ( spSVector x,
short a )

Takes the largest value between each element of x and a .

◆ lvscmax()

void lvscmax ( spLVector x,
long a )

Takes the largest value between each element of x and a .

◆ fvscmax()

void fvscmax ( spFVector x,
float a )

Takes the largest value between each element of x and a .

◆ dvscmax()

void dvscmax ( spDVector x,
double a )

Takes the largest value between each element of x and a .

◆ svelmin()

void svelmin ( spSVector x,
spSVector y )

Takes the smallest value between each element of x and that of y .

◆ lvelmin()

void lvelmin ( spLVector x,
spLVector y )

Takes the smallest value between each element of x and that of y .

◆ fvelmin()

void fvelmin ( spFVector x,
spFVector y )

Takes the smallest value between each element of x and that of y .

◆ dvelmin()

void dvelmin ( spDVector x,
spDVector y )

Takes the smallest value between each element of x and that of y .

◆ svelmax()

void svelmax ( spSVector x,
spSVector y )

Takes the largest value between each element of x and that of y .

◆ lvelmax()

void lvelmax ( spLVector x,
spLVector y )

Takes the largest value between each element of x and that of y .

◆ fvelmax()

void fvelmax ( spFVector x,
spFVector y )

Takes the largest value between each element of x and that of y .

◆ dvelmax()

void dvelmax ( spDVector x,
spDVector y )

Takes the largest value between each element of x and that of y .

◆ svsort()

void svsort ( spSVector x)

Sorts the real elements of x in ascending order.

◆ lvsort()

void lvsort ( spLVector x)

Sorts the real elements of x in ascending order.

◆ fvsort()

void fvsort ( spFVector x)

Sorts the real elements of x in ascending order.

◆ dvsort()

void dvsort ( spDVector x)

Sorts the real elements of x in ascending order.

◆ xsvsort()

spSVector xsvsort ( spSVector x)

Creates a new vector containing the sorted real elements x in ascending order.

◆ xlvsort()

spLVector xlvsort ( spLVector x)

Creates a new vector containing the sorted real elements x in ascending order.

◆ xfvsort()

spFVector xfvsort ( spFVector x)

Creates a new vector containing the sorted real elements x in ascending order.

◆ xdvsort()

spDVector xdvsort ( spDVector x)

Creates a new vector containing the sorted real elements x in ascending order.

◆ xsvsortidx()

spLVector xsvsortidx ( spSVector x)

Sorts the real elements of x in ascending order and returns the index vector which describes the rearrangement of th elements in sorting.

Parameters
[in,out]xThe input vector. After calling this function, the elements are sorted in ascending order.
Returns
The memory-allocated index vector of spLVector.

◆ xlvsortidx()

spLVector xlvsortidx ( spLVector x)

Sorts the real elements of x in ascending order and returns the index vector which describes the rearrangement of th elements in sorting.

Parameters
[in,out]xThe input vector. After calling this function, the elements are sorted in ascending order.
Returns
The memory-allocated index vector of spLVector.

◆ xfvsortidx()

spLVector xfvsortidx ( spFVector x)

Sorts the real elements of x in ascending order and returns the index vector which describes the rearrangement of th elements in sorting.

Parameters
[in,out]xThe input vector. After calling this function, the elements are sorted in ascending order.
Returns
The memory-allocated index vector of spLVector.

◆ xdvsortidx()

spLVector xdvsortidx ( spDVector x)

Sorts the real elements of x in ascending order and returns the index vector which describes the rearrangement of th elements in sorting.

Parameters
[in,out]xThe input vector. After calling this function, the elements are sorted in ascending order.
Returns
The memory-allocated index vector of spLVector.

◆ svmedian()

double svmedian ( spSVector x)

Sorts the real elements of x and calculates the median value.

Parameters
[in,out]xThe input vector. After calling this function, the elements are sorted in ascending order.
Returns
The median value.

◆ lvmedian()

double lvmedian ( spLVector x)

Sorts the real elements of x and calculates the median value.

Parameters
[in,out]xThe input vector. After calling this function, the elements are sorted in ascending order.
Returns
The median value.

◆ fvmedian()

float fvmedian ( spFVector x)

Sorts the real elements of x and calculates the median value.

Parameters
[in,out]xThe input vector. After calling this function, the elements are sorted in ascending order.
Returns
The median value.

◆ dvmedian()

double dvmedian ( spDVector x)

Sorts the real elements of x and calculates the median value.

Parameters
[in,out]xThe input vector. After calling this function, the elements are sorted in ascending order.
Returns
The median value.

◆ xsvmedian()

spSVector xsvmedian ( spSVector x,
double * median )

Sorts the real elements of x and calculates the median value.

Parameters
[in]xThe input vector.
[out]medianThe address of a variable to receive the median value.
Returns
The memory-allocated vector sorted in ascending order.

◆ xlvmedian()

spLVector xlvmedian ( spLVector x,
double * median )

Sorts the real elements of x and calculates the median value.

Parameters
[in]xThe input vector.
[out]medianThe address of a variable to receive the median value.
Returns
The memory-allocated vector sorted in ascending order.

◆ xfvmedian()

spFVector xfvmedian ( spFVector x,
float * median )

Sorts the real elements of x and calculates the median value.

Parameters
[in]xThe input vector.
[out]medianThe address of a variable to receive the median value.
Returns
The memory-allocated vector sorted in ascending order.

◆ xdvmedian()

spDVector xdvmedian ( spDVector x,
double * median )

Sorts the real elements of x and calculates the median value.

Parameters
[in]xThe input vector.
[out]medianThe address of a variable to receive the median value.
Returns
The memory-allocated vector sorted in ascending order.

◆ svzerocross()

long svzerocross ( spSVector x,
int slope_sign )

Counts the number of zero-crossings of the input vector x .

Parameters
[in]xThe input vector.
[in]slope_signThe switch to determine which slope direction is used to calculate the zero-crossings; 0: both directions, 1: positive direction only, and -1: negative direction only.
Returns
The number of zero-crossings.

◆ lvzerocross()

long lvzerocross ( spLVector x,
int slope_sign )

Counts the number of zero-crossings of the input vector x .

Parameters
[in]xThe input vector.
[in]slope_signThe switch to determine which slope direction is used to calculate the zero-crossings; 0: both directions, 1: positive direction only, and -1: negative direction only.
Returns
The number of zero-crossings.

◆ fvzerocross()

long fvzerocross ( spFVector x,
int slope_sign )

Counts the number of zero-crossings of the input vector x .

Parameters
[in]xThe input vector.
[in]slope_signThe switch to determine which slope direction is used to calculate the zero-crossings; 0: both directions, 1: positive direction only, and -1: negative direction only.
Returns
The number of zero-crossings.

◆ dvzerocross()

long dvzerocross ( spDVector x,
int slope_sign )

Counts the number of zero-crossings of the input vector x .

Parameters
[in]xThe input vector.
[in]slope_signThe switch to determine which slope direction is used to calculate the zero-crossings; 0: both directions, 1: positive direction only, and -1: negative direction only.
Returns
The number of zero-crossings.

◆ fvangle()

void fvangle ( spFVector x)

Calculates the phase angle of each element of x .

◆ xfvangle()

spFVector xfvangle ( spFVector x)

Creates a new vector whose each element is the phase angle of the corresponding element of x .

◆ dvangle()

void dvangle ( spDVector x)

Calculates the phase angle of each element of x .

◆ xdvangle()

spDVector xdvangle ( spDVector x)

Creates a new vector whose each element is the phase angle of the corresponding element of x .

◆ fvcos()

void fvcos ( spFVector x)

Calculates cos of each element of x .

◆ dvcos()

void dvcos ( spDVector x)

Calculates cos of each element of x .

◆ xfvcos()

spFVector xfvcos ( spFVector x)

Creates a new vector whose each element is cos of the corresponding element of x .

◆ xdvcos()

spDVector xdvcos ( spDVector x)

Creates a new vector whose each element is cos of the corresponding element of x .

◆ fvsin()

void fvsin ( spFVector x)

Calculates sin of each element of x .

◆ dvsin()

void dvsin ( spDVector x)

Calculates sin of each element of x .

◆ xfvsin()

spFVector xfvsin ( spFVector x)

Creates a new vector whose each element is sin of the corresponding element of x .

◆ xdvsin()

spDVector xdvsin ( spDVector x)

Creates a new vector whose each element is sin of the corresponding element of x .

◆ fvtan()

void fvtan ( spFVector x)

Calculates tan of each element of x .

◆ dvtan()

void dvtan ( spDVector x)

Calculates tan of each element of x .

◆ xfvtan()

spFVector xfvtan ( spFVector x)

Creates a new vector whose each element is tan of the corresponding element of x .

◆ xdvtan()

spDVector xdvtan ( spDVector x)

Creates a new vector whose each element is tan of the corresponding element of x .

◆ fvcosh()

void fvcosh ( spFVector x)

Calculates cosh of each element of x .

◆ dvcosh()

void dvcosh ( spDVector x)

Calculates cosh of each element of x .

◆ xfvcosh()

spFVector xfvcosh ( spFVector x)

Creates a new vector whose each element is cosh of the corresponding element of x .

◆ xdvcosh()

spDVector xdvcosh ( spDVector x)

Creates a new vector whose each element is cosh of the corresponding element of x .

◆ fvsinh()

void fvsinh ( spFVector x)

Calculates sinh of each element of x .

◆ dvsinh()

void dvsinh ( spDVector x)

Calculates sinh of each element of x .

◆ xfvsinh()

spFVector xfvsinh ( spFVector x)

Creates a new vector whose each element is sinh of the corresponding element of x .

◆ xdvsinh()

spDVector xdvsinh ( spDVector x)

Creates a new vector whose each element is sinh of the corresponding element of x .

◆ fvtanh()

void fvtanh ( spFVector x)

Calculates tanh of each element of x .

◆ dvtanh()

void dvtanh ( spDVector x)

Calculates tanh of each element of x .

◆ xfvtanh()

spFVector xfvtanh ( spFVector x)

Creates a new vector whose each element is tanh of the corresponding element of x .

◆ xdvtanh()

spDVector xdvtanh ( spDVector x)

Creates a new vector whose each element is tanh of the corresponding element of x .

◆ fvacos()

void fvacos ( spFVector x)

Calculates acos of each element of x .

◆ dvacos()

void dvacos ( spDVector x)

Calculates acos of each element of x .

◆ xfvacos()

spFVector xfvacos ( spFVector x)

Creates a new vector whose each element is acos of the corresponding element of x .

◆ xdvacos()

spDVector xdvacos ( spDVector x)

Creates a new vector whose each element is acos of the corresponding element of x .

◆ fvasin()

void fvasin ( spFVector x)

Calculates asin of each element of x .

◆ dvasin()

void dvasin ( spDVector x)

Calculates asin of each element of x .

◆ xfvasin()

spFVector xfvasin ( spFVector x)

Creates a new vector whose each element is asin of the corresponding element of x .

◆ xdvasin()

spDVector xdvasin ( spDVector x)

Creates a new vector whose each element is asin of the corresponding element of x .

◆ fvatan()

void fvatan ( spFVector x)

Calculates atan of each element of x .

◆ dvatan()

void dvatan ( spDVector x)

Calculates atan of each element of x .

◆ xfvatan()

spFVector xfvatan ( spFVector x)

Creates a new vector whose each element is atan of the corresponding element of x .

◆ xdvatan()

spDVector xdvatan ( spDVector x)

Creates a new vector whose each element is atan of the corresponding element of x .

◆ fvatan2()

void fvatan2 ( spFVector y,
spFVector x,
spBool reverse )

Calculates atan2(y, x) for each element and overwrites the result to y . If reverse is SP_TRUE , this function calculates atan2(x, y) for each element and overwrites the result to y . The imaginary parts of y and x are not used.

◆ dvatan2()

void dvatan2 ( spDVector y,
spDVector x,
spBool reverse )

Calculates atan2(y, x) for each element and overwrites the result to y . If reverse is SP_TRUE , this function calculates atan2(x, y) for each element and overwrites the result to y . The imaginary parts of y and x are not used.

◆ xfvatan2()

spFVector xfvatan2 ( spFVector y,
spFVector x )

Creates a new vector whose each element is atan2 of the corresponding element of x . The imaginary parts of y and x are not used.

◆ xdvatan2()

spDVector xdvatan2 ( spDVector y,
spDVector x )

Creates a new vector whose each element is atan2 of the corresponding element of x . The imaginary parts of y and x are not used.

◆ fvexp()

void fvexp ( spFVector x)

Calculates exp of each element of x .

◆ dvexp()

void dvexp ( spDVector x)

Calculates exp of each element of x .

◆ xfvexp()

spFVector xfvexp ( spFVector x)

Creates a new vector whose each element is exp of the corresponding element of x .

◆ xdvexp()

spDVector xdvexp ( spDVector x)

Creates a new vector whose each element is exp of the corresponding element of x .

◆ fvlog()

void fvlog ( spFVector x)

Calculates log of each element of x .

◆ dvlog()

void dvlog ( spDVector x)

Calculates log of each element of x .

◆ xfvlog()

spFVector xfvlog ( spFVector x)

Creates a new vector whose each element is log of the corresponding element of x .

◆ xdvlog()

spDVector xdvlog ( spDVector x)

Creates a new vector whose each element is log of the corresponding element of x .

◆ fvlog10()

void fvlog10 ( spFVector x)

Calculates log10 of each element of x .

◆ dvlog10()

void dvlog10 ( spDVector x)

Calculates log10 of each element of x .

◆ xfvlog10()

spFVector xfvlog10 ( spFVector x)

Creates a new vector whose each element is log10 of the corresponding element of x .

◆ xdvlog10()

spDVector xdvlog10 ( spDVector x)

Creates a new vector whose each element is log10 of the corresponding element of x .

◆ fvdecibela()

void fvdecibela ( spFVector x)

Calculates 20*log10(x) of each element of x . If x includes negative values, the result is undefined.

◆ dvdecibela()

void dvdecibela ( spDVector x)

Calculates 20*log10(x) of each element of x . If x includes negative values, the result is undefined.

◆ xfvdecibela()

spFVector xfvdecibela ( spFVector x)

Creates a new vector whose each element is 20*log10(x) of the corresponding element of x . If x includes negative values, the result is undefined.

◆ xdvdecibela()

spDVector xdvdecibela ( spDVector x)

Creates a new vector whose each element is 20*log10(x) of the corresponding element of x . If x includes negative values, the result is undefined.

◆ fvdecibelp()

void fvdecibelp ( spFVector x)

Calculates 10*log10(x) of each element of x . If x includes negative values, the result is undefined.

◆ dvdecibelp()

void dvdecibelp ( spDVector x)

Calculates 10*log10(x) of each element of x . If x includes negative values, the result is undefined.

◆ xfvdecibelp()

spFVector xfvdecibelp ( spFVector x)

Creates a new vector whose each element is 10*log10(x) of the corresponding element of x . If x includes negative values, the result is undefined.

◆ xdvdecibelp()

spDVector xdvdecibelp ( spDVector x)

Creates a new vector whose each element is 10*log10(x) of the corresponding element of x . If x includes negative values, the result is undefined.

◆ fvundecibelp()

void fvundecibelp ( spFVector x)

Calculates 10^(x/10) of each element of x .

◆ dvundecibelp()

void dvundecibelp ( spDVector x)

Calculates 10^(x/10) of each element of x .

◆ xfvundecibelp()

spFVector xfvundecibelp ( spFVector x)

Creates a new vector whose each element is 10^(x/10) of the corresponding element of x .

◆ xdvundecibelp()

spDVector xdvundecibelp ( spDVector x)

Creates a new vector whose each element is 10^(x/10) of the corresponding element of x .

◆ fvdecibel()

void fvdecibel ( spFVector x)

Calculates 10*log10(|x|^2) of each element of x .

◆ dvdecibel()

void dvdecibel ( spDVector x)

Calculates 10*log10(|x|^2) of each element of x .

◆ xfvdecibel()

spFVector xfvdecibel ( spFVector x)

Creates a new vector whose each element is 10*log10(|x|^2) of the corresponding element of x .

◆ xdvdecibel()

spDVector xdvdecibel ( spDVector x)

Creates a new vector whose each element is 10*log10(|x|^2) of the corresponding element of x .

◆ fvundecibel()

void fvundecibel ( spFVector x)

Calculates 10^(x/20) of each element of x .

◆ dvundecibel()

void dvundecibel ( spDVector x)

Calculates 10^(x/20) of each element of x .

◆ xfvundecibel()

spFVector xfvundecibel ( spFVector x)

Creates a new vector whose each element is 10^(x/20) of the corresponding element of x .

◆ xdvundecibel()

spDVector xdvundecibel ( spDVector x)

Creates a new vector whose each element is 10^(x/20) of the corresponding element of x .

◆ fvrandun()

void fvrandun ( spFVector x)

Calculates a uniformly distributed random number in the interval (0,1) for each element of x .

◆ dvrandun()

void dvrandun ( spDVector x)

Calculates a uniformly distributed random number in the interval (0,1) for each element of x .

◆ xfvrandunul()

spFVector xfvrandunul ( spPlugin * plugin,
long length,
spBool unlock_flag )

Creates a new plugin-based vector whose each element is a uniformly distributed random number in the interval (0,1).

◆ xdvrandunul()

spDVector xdvrandunul ( spPlugin * plugin,
long length,
spBool unlock_flag )

Creates a new plugin-based vector whose each element is a uniformly distributed random number in the interval (0,1).

◆ xfvrandun()

spFVector xfvrandun ( long length)

Creates a new vector whose each element is a uniformly distributed random number in the interval (0,1).

◆ xdvrandun()

spDVector xdvrandun ( long length)

Creates a new vector whose each element is a uniformly distributed random number in the interval (0,1).

◆ fvgauss()

void fvgauss ( spFVector x,
float mu,
float sigma )

Calculates a Gaussian random number with the mean of mu and the standard dev. of sigma for each element of x .

◆ dvgauss()

void dvgauss ( spDVector x,
double mu,
double sigma )

Calculates a Gaussian random number with the mean of mu and the standard dev. of sigma for each element of x .

◆ xfvgaussul()

spFVector xfvgaussul ( spPlugin * plugin,
long length,
float mu,
float sigma,
spBool unlock_flag )

Creates a new plugin-based vector whose each element is a Gaussian random number with the mean of mu and the standard dev. of sigma .

◆ xdvgaussul()

spDVector xdvgaussul ( spPlugin * plugin,
long length,
double mu,
double sigma,
spBool unlock_flag )

Creates a new plugin-based vector whose each element is a Gaussian random number with the mean of mu and the standard dev. of sigma .

◆ xfvgauss()

spFVector xfvgauss ( long length,
float mu,
float sigma )

Creates a new vector whose each element is a Gaussian random number with the mean of mu and the standard dev. of sigma .

◆ xdvgauss()

spDVector xdvgauss ( long length,
double mu,
double sigma )

Creates a new vector whose each element is a Gaussian random number with the mean of mu and the standard dev. of sigma .

◆ fvrandn()

void fvrandn ( spFVector x)

Calculates a normally distributed random number for each element of x .

◆ dvrandn()

void dvrandn ( spDVector x)

Calculates a normally distributed random number for each element of x .

◆ xfvrandnul()

spFVector xfvrandnul ( spPlugin * plugin,
long length,
spBool unlock_flag )

Creates a new plugin-based vector whose each element is a normally distributed random number.

◆ xdvrandnul()

spDVector xdvrandnul ( spPlugin * plugin,
long length,
spBool unlock_flag )

Creates a new plugin-based vector whose each element is a normally distributed random number.

◆ xfvrandn()

spFVector xfvrandn ( long length)

Creates a new vector whose each element is a normally distributed random number.

◆ xdvrandn()

spDVector xdvrandn ( long length)

Creates a new vector whose each element is a normally distributed random number.