Functions | |
FARSA_NNFW_TEMPLATE DoubleVector & | amul (DoubleVector &y, const DoubleVector &x, const DoubleMatrix &m) |
Right Accumulated Multiplication: y += x*m . | |
FARSA_NNFW_TEMPLATE DoubleVector & | amul (DoubleVector &y, const DoubleMatrix &m, const DoubleVector &x) |
Left Accumulated Multiplication: y += m*x . | |
FARSA_NNFW_TEMPLATE DoubleVector & | deltarule (DoubleVector &r, double rate, const DoubleVector &x, const DoubleVector &y) |
Delta-Rule: r += rate * x * y . | |
FARSA_NNFW_TEMPLATE DoubleMatrix & | deltarule (DoubleMatrix &m, double rate, const DoubleVector &x, const DoubleVector &y) |
Delta-Rule: m += rate * x * y . | |
FARSA_NNFW_TEMPLATE DoubleVector & | exp (DoubleVector &data) |
Calculate the exponential of each element. | |
FARSA_NNFW_TEMPLATE DoubleVector & | inv (DoubleVector &data) |
Calculate the inverse of each element. | |
FARSA_NNFW_TEMPLATE unsigned int | maxIndex (const DoubleVector &src) |
Return the index where the first occurrence of the maximum value appear in the vector. | |
FARSA_NNFW_TEMPLATE double | mean (const DoubleVector &src) |
Return the mean value of the vector's elements. | |
template<class T > | |
FARSA_NNFW_TEMPLATE void | memoryCopy (T *dest, const T *src, unsigned int size) |
template for memory copy of data | |
FARSA_NNFW_TEMPLATE void | memoryCopy (float *dest, const float *src, unsigned int size) |
specialization of memoryCopy for float data | |
FARSA_NNFW_TEMPLATE void | memoryCopy (double *dest, const double *src, unsigned int size) |
specialization of memoryCopy for double data | |
FARSA_NNFW_TEMPLATE void | memoryCopy (bool *dest, const bool *src, unsigned int size) |
specialization of memoryCopy for bool data | |
template<class T > | |
FARSA_NNFW_TEMPLATE void | memoryZeroing (T *data, unsigned int size) |
template for memory zeroing of data | |
FARSA_NNFW_TEMPLATE void | memoryZeroing (float *data, unsigned int size) |
specialization of memoryZeroing for float data | |
FARSA_NNFW_TEMPLATE void | memoryZeroing (double *data, unsigned int size) |
specialization of memoryZeroing for double data | |
FARSA_NNFW_TEMPLATE void | memoryZeroing (bool *data, unsigned int size) |
specialization of memoryZeroing for bool data | |
FARSA_NNFW_TEMPLATE double | mse (const DoubleVector &target, const DoubleVector &actual) |
Return the mean square error of the vector's elements. | |
FARSA_NNFW_TEMPLATE DoubleVector & | mul (DoubleVector &r, double a, const DoubleVector &x) |
multiplication with alread allocated destination vector: r = a * x | |
FARSA_NNFW_TEMPLATE DoubleVector & | mul (DoubleVector &y, const DoubleVector &x, const DoubleMatrix &m) |
Right Multiplication: y = x*m . | |
FARSA_NNFW_TEMPLATE DoubleVector & | mul (DoubleVector &y, const DoubleMatrix &m, const DoubleVector &x) |
Left Multiplication: y = m*x . | |
FARSA_NNFW_TEMPLATE const DoubleVector | operator* (const double &a, const DoubleVector &x) |
operator* between scalar and DoubleVector | |
FARSA_NNFW_TEMPLATE const DoubleVector | operator* (const DoubleVector &x, const double &a) |
operator* between DoubleVector and scalar | |
FARSA_NNFW_TEMPLATE const DoubleVector | operator+ (const double &a, const DoubleVector &x) |
operator+ between scalar and DoubleVector | |
FARSA_NNFW_TEMPLATE const DoubleVector | operator+ (const DoubleVector &x, const double &a) |
operator+ between DoubleVector and scalar | |
FARSA_NNFW_TEMPLATE const DoubleVector | operator- (const double &a, const DoubleVector &x) |
operator- between scalar and DoubleVector | |
FARSA_NNFW_TEMPLATE const DoubleVector | operator- (const DoubleVector &x, const double &a) |
operator- between DoubleVector and scalar | |
FARSA_NNFW_TEMPLATE const DoubleVector | operator/ (const double &a, const DoubleVector &x) |
operator/ between scalar and DoubleVector | |
FARSA_NNFW_TEMPLATE const DoubleVector | operator/ (const DoubleVector &x, const double &a) |
operator/ between DoubleVector and scalar | |
FARSA_NNFW_TEMPLATE DoubleVector & | square (DoubleVector &data) |
Calculate the square of each element. | |
FARSA_NNFW_TEMPLATE DoubleVector & | subtract (DoubleVector &r, const DoubleVector &x, const DoubleVector &y) |
subtraction with alread allocated destination vector: r = x - y | |
FARSA_NNFW_TEMPLATE DoubleVector & | subtract (DoubleVector &r, double a, const DoubleVector &x) |
subtraction with alread allocated destination vector: r = a - x | |
FARSA_NNFW_TEMPLATE double | sum (const DoubleVector &data) |
Return the sum of the vector's elements. | |
Detailed Description
Function Documentation
|
inline |
Right Accumulated Multiplication: y += x*m .
- Parameters
-
y the result of multiplication x the vector m the matrix
- Returns
- the vector y
Definition at line 283 of file algebra.h.
References DoubleMatrix::cols(), DoubleMatrix::rows(), and DoubleVector::size().
Referenced by DotLinker::update().
|
inline |
Left Accumulated Multiplication: y += m*x .
- Parameters
-
y the result of multiplication m the matrix x the vector
- Returns
- the vector y
Definition at line 324 of file algebra.h.
References DoubleMatrix::cols(), DoubleMatrix::rows(), and DoubleVector::size().
|
inline |
Delta-Rule: r += rate * x * y .
Add to r the computation of the so-called delta-rule
- Parameters
-
r is the vector on which delta-rule results is added rate is the scaling factor of multiplication x is the first vector y is the second vector
- Returns
- the vector r
Definition at line 244 of file algebra.h.
References DoubleVector::size().
Referenced by BackPropagationAlgo::learn().
|
inline |
Delta-Rule: m += rate * x * y .
- Parameters
-
m the matrix on which the result of Delta-rule is added up rate is the factor of multiplicaton x is the first vector, its dimension must be the same of matrix's rows y is the second vector, its dimension must be the same of matrix's columns
- Returns
- the matrix m
Definition at line 345 of file algebra.h.
References DoubleMatrix::cols(), DoubleMatrix::rows(), and DoubleVector::size().
|
inline |
Calculate the exponential of each element.
Definition at line 44 of file algebra.h.
References DoubleVector::size().
Referenced by GaussFunction::apply(), SigmoidFunction::apply(), ScaledSigmoidFunction::apply(), RampFunction::derivate(), and StepFunction::derivate().
|
inline |
Calculate the inverse of each element.
Definition at line 65 of file algebra.h.
References DoubleVector::size().
Referenced by SigmoidFunction::apply(), ScaledSigmoidFunction::apply(), and LogLikeFunction::apply().
|
inline |
Return the index where the first occurrence of the maximum value appear in the vector.
Definition at line 53 of file algebra.h.
References DoubleVector::size().
Referenced by WinnerTakeAllFunction::apply().
|
inline |
Return the mean value of the vector's elements.
Definition at line 93 of file algebra.h.
References DoubleVector::size(), and farsa::sum().
Referenced by farsa::mse().
|
inline |
template for memory copy of data
Definition at line 34 of file memutils.h.
Referenced by DoubleVector::detach(), and DoubleVector::resize().
|
inline |
specialization of memoryCopy for float data
Definition at line 53 of file memutils.h.
|
inline |
specialization of memoryCopy for double data
Definition at line 67 of file memutils.h.
|
inline |
specialization of memoryCopy for bool data
Definition at line 81 of file memutils.h.
|
inline |
template for memory zeroing of data
Definition at line 44 of file memutils.h.
Referenced by DoubleVector::DoubleVector().
|
inline |
specialization of memoryZeroing for float data
Definition at line 60 of file memutils.h.
|
inline |
specialization of memoryZeroing for double data
Definition at line 74 of file memutils.h.
|
inline |
specialization of memoryZeroing for bool data
Definition at line 88 of file memutils.h.
|
inline |
Return the mean square error of the vector's elements.
Definition at line 99 of file algebra.h.
References farsa::mean(), and farsa::square().
Referenced by BackPropagationAlgo::calculateMSE().
|
inline |
multiplication with alread allocated destination vector: r = a * x
Definition at line 223 of file algebra.h.
References DoubleVector::size().
Referenced by ScaleFunction::apply(), SigmoidFunction::apply(), ScaledSigmoidFunction::apply(), LinearFunction::apply(), and LogLikeFunction::apply().
|
inline |
Right Multiplication: y = x*m .
- Parameters
-
y the result of multiplication x the vector m the matrix
- Returns
- the vector y
Definition at line 263 of file algebra.h.
References DoubleMatrix::cols(), DoubleMatrix::rows(), and DoubleVector::size().
|
inline |
Left Multiplication: y = m*x .
- Parameters
-
y the result of multiplication m the matrix x the vector
- Returns
- the vector y
Definition at line 304 of file algebra.h.
References DoubleMatrix::cols(), DoubleMatrix::rows(), and DoubleVector::size().
|
inline |
operator* between scalar and DoubleVector
Definition at line 151 of file algebra.h.
References DoubleVector::size().
|
inline |
operator* between DoubleVector and scalar
Definition at line 162 of file algebra.h.
References DoubleVector::size().
|
inline |
operator+ between scalar and DoubleVector
Definition at line 129 of file algebra.h.
References DoubleVector::size().
|
inline |
operator+ between DoubleVector and scalar
Definition at line 140 of file algebra.h.
References DoubleVector::size().
|
inline |
operator- between scalar and DoubleVector
Definition at line 107 of file algebra.h.
References DoubleVector::size().
|
inline |
operator- between DoubleVector and scalar
Definition at line 118 of file algebra.h.
References DoubleVector::size().
|
inline |
operator/ between scalar and DoubleVector
Definition at line 173 of file algebra.h.
References DoubleVector::size().
|
inline |
operator/ between DoubleVector and scalar
Definition at line 184 of file algebra.h.
References DoubleVector::size().
|
inline |
Calculate the square of each element.
Definition at line 84 of file algebra.h.
References DoubleVector::size().
Referenced by GaussFunction::apply(), farsa::mse(), and NormLinker::update().
|
inline |
subtraction with alread allocated destination vector: r = x - y
Definition at line 195 of file algebra.h.
References DoubleVector::size().
Referenced by GaussFunction::apply(), LeakyIntegratorFunction::apply(), GaussFunction::derivate(), SigmoidFunction::derivate(), FakeSigmoidFunction::derivate(), ScaledSigmoidFunction::derivate(), BackPropagationAlgo::setTeachingInput(), NormLinker::update(), and BiasedCluster::update().
|
inline |
subtraction with alread allocated destination vector: r = a - x
Definition at line 209 of file algebra.h.
References DoubleVector::size().
|
inline |
Return the sum of the vector's elements.
Definition at line 74 of file algebra.h.
References DoubleVector::size().
Referenced by farsa::mean(), and NormLinker::update().