80 const float *
const x,
82 const float *
const y,
118 float (*fx2)(
float,
float),
136 const float *
const x,
160 const float *
const src,
200 const float *
const y,
245 const float *
const x,
float * qVFloat_Set(float *const x, const float c, const size_t n)
Set the value given on c to all the elements of the vector pointed by x.
Definition qvfloat.c:319
float * qVFloat_Rotate(float *const dst, float *const src, const int k, const size_t n)
Rotates the elements of vector pointed by src the number of places and in the direction indicated by ...
Definition qvfloat.c:412
float qVFloat_Operate(float *const dst, qVFloat_Operation_t o, const float a, const float *const x, const float b, const float *const y, const size_t n)
Computes one of the following 1D-vector operation :
Definition qvfloat.c:194
float * qVFloat_LinSpace(float *const dst, const float x1, const float x2, const size_t n)
Generate linearly spaced vector of points. The spacing between the points is (x2-x1)/(n-1)
Definition qvfloat.c:358
int qVFloat_Moment(qVFloat_Moment_t *const m, const float *const x, const size_t n)
Computes the moment of a distribution for a given set of data including : Mean, Variance,...
Definition qvfloat.c:270
float qVFloat_PolyVal(const float *const p, const float x, size_t n)
Takes the input vector p as a polynomial p and evaluates it for x. The argument p is a vector of leng...
Definition qvfloat.c:342
float qVFloat_Distance(const float *const x, const float *const y, const size_t n)
Returns the Euclidean distance between vectors x and y.
Definition qvfloat.c:375
float * qVFloat_Reverse(float *const dst, float *const src, const size_t init, const size_t end)
Reverse the given vector pointed by src. Operation takes place on the portion of the vector that star...
Definition qvfloat.c:397
float * qVFloat_Sort(float *const dst, float *const src, const bool dir, size_t n)
Returns a sorted version of unsorted vector pointed by src with the elements arranged in ascending or...
Definition qvfloat.c:504
qVFloat_Operation_t
Supported operators on vectors.
Definition qvfloat.h:28
float * qVFloat_Copy(float *const dst, const float *const src, const size_t n)
Copies all the values on vector pointed by src to the vector pointed by dst.
Definition qvfloat.c:332
int qVFloat_MinMax(qVFloat_MinMax_t *const o, const float *const x, const size_t n)
Find the smallest and largest elements of vector pointed by x.
Definition qvfloat.c:427
float qVFloat_ApplyFx(float *dst, float(*fx1)(float), float(*fx2)(float, float), float *const x, float *const y, const float a, const float b, const size_t n)
Apply one the supplied function ( fx1 or fx2 ) to the input vector(s).
Definition qvfloat.c:225
@ VFLOAT_DIV
Definition qvfloat.h:31
@ VFLOAT_MUL
Definition qvfloat.h:30
@ VFLOAT_ADD
Definition qvfloat.h:29
Metrics returned by qVFloat_MinMax()
Definition qvfloat.h:49
float max
Definition qvfloat.h:51
size_t index_max
Definition qvfloat.h:53
float min
Definition qvfloat.h:50
size_t index_min
Definition qvfloat.h:52
Metrics returned by qVFloat_Moment()
Definition qvfloat.h:37
float skew
Definition qvfloat.h:42
float stdDev
Definition qvfloat.h:40
float var
Definition qvfloat.h:41
float curt
Definition qvfloat.h:43
float mean
Definition qvfloat.h:38
float avgDev
Definition qvfloat.h:39