Inheritance diagram for RealVec:


Constructors | |
| RealVec (u_int size) | |
| RealVec (u_int size, Real value) | |
| RealVec () | |
| RealVec (RealVec &src, u_int idStart, u_int idEnd) | |
| RealVec (const Real *r, u_int dim) | |
| RealVec (const RealVec &orig) | |
| RealVec & | operator= (const RealVec &src) |
Operations on RealVec | |
| RealVec & | operator<< (const Real &value) |
Unary Operators | |
| RealVec & | operator- () |
Binary Operators | |
| RealVec & | operator+= (const RealVec &r) |
| RealVec & | operator+= (const Real &r) |
| RealVec & | operator-= (const RealVec &r) |
| RealVec & | operator-= (const Real &r) |
| RealVec & | operator *= (const RealVec &r) |
| RealVec & | operator *= (const Real &r) |
| RealVec & | operator/= (const RealVec &r) |
| RealVec & | operator/= (const Real &r) |
| Real | dot (const RealVec &r) |
Math Functions | |
| RealVec & | exp () |
| RealVec & | scale (const Real v) |
| RealVec & | inv () |
| Real | norm () |
| RealVec & | square () |
| Real | sum () |
| RealVec & | normalize () |
| RealVec & | neg () |
| void | assign_xminusy (const RealVec &x, const RealVec &y) |
| void | assign_minusx (const RealVec &x) |
| void | assign_aminusx (Real a, const RealVec &x) |
| void | assign_amulx (const Real a, const RealVec &x) |
| void | assign_adivx (const Real a, const RealVec &x) |
| Real | mean () |
| int | maxIndex () |
| Real | maxValue () |
| int | minIndex () |
| Real | minValue () |
| RealVec & | step (Real threshold) |
| RealVec & | deltarule (Real rate, const RealVec &x, const RealVec &y) |
| static void | createAllBinaries (RealVec *vector, unsigned long int pats, u_int dims) |
| static Real | mse (const RealVec &target, const RealVec &actual) |
Vector-Vector Operators | |
| static RealMat & | outprod (RealMat &m, const RealVec &x, const RealVec &y) |
Protected Member Functions | |
| Real * | rawdata () const |
Construct a vector of dimension size with all values set to value
| RealVec | ( | ) |
Construct an empty vector with dimesion zero
| RealVec& operator- | ( | ) | [inline] |
Operator -
| RealVec& exp | ( | ) |
Exponential
| RealVec& inv | ( | ) |
Element Inversion
| Real norm | ( | ) |
vector norm: ||x||
| RealVec& square | ( | ) | [inline] |
Calculate the square of each element
| Real sum | ( | ) | [inline] |
Return the sum of the vector's elements
| RealVec& normalize | ( | ) | [inline] |
Normalize the vector, so the norm is equal to one
| void assign_minusx | ( | const RealVec & | x | ) | [inline] |
Equation: -x
| Real mean | ( | ) | [inline] |
Return the mean value of the vector's elements
| int maxIndex | ( | ) | [inline] |
return the position of the maximum element in the vector
| Real maxValue | ( | ) | [inline] |
return the value of the maximum element in the vector
| int minIndex | ( | ) | [inline] |
return the position of the minimum element in the vector
| Real minValue | ( | ) | [inline] |
return the value of the minimum element in the vector
For each element i, data[i] = 0 if data[i] <= threshold; data[i] = 1 otherwise
Create all the binary vectors of a given dimension
Return the mean square error of the vector's elements
Delta-Rule: r += rate * x * y
Add to itselt the scaled by rate of the element-by-element multiplication of x with y
| rate | is the scaling factor of multiplication | |
| x | is the first vector | |
| y | is the second vector |
Outer Product: m += x'*y
The x vector will be taken as a matrix of Rx1 dimension and y as a matrix of 1xC dimension, where RxC is the dimension of m
| m | the matrix result of multiplication | |
| x | the first vector; the dimesion must be the same of matrix's rows | |
| y | the second vector; the dimension must be the same of matrix's columns |
| Real* rawdata | ( | ) | const [inline, protected] |
return the rawdata
Reimplemented from VectorData.