SYNOPSIS

Public Member Functions

SimpleToleranceTermination (const double tolerance=1e-5, const size_t maxIterations=10000, const size_t reverseStepTolerance=3)

const double & Index ()

void Initialize (const MatType &V)

bool IsConverged (arma::mat &W, arma::mat &H)

const size_t & Iteration ()

const size_t & MaxIterations ()

Private Attributes

double c_index

double c_indexOld

arma::mat H

bool isCopy

size_t iteration

size_t maxIterations

double normOld

double residue

double residueOld

size_t reverseStepCount

size_t reverseStepTolerance

double tolerance

const MatType * V

arma::mat W

Detailed Description

template<class MatType>class mlpack::amf::SimpleToleranceTermination< MatType >

Definition at line 29 of file simple_tolerance_termination.hpp.

Constructor & Destructor Documentation

template<class MatType > \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::\fBSimpleToleranceTermination\fP (const doubletolerance = \fC1e-5\fP, const size_tmaxIterations = \fC10000\fP, const size_treverseStepTolerance = \fC3\fP)\fC [inline]\fP

Definition at line 32 of file simple_tolerance_termination.hpp.

Member Function Documentation

template<class MatType > const double& \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::Index ()\fC [inline]\fP

Definition at line 119 of file simple_tolerance_termination.hpp.

References mlpack::amf::SimpleToleranceTermination< MatType >::residue.

template<class MatType > void \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::Initialize (const MatType &V)\fC [inline]\fP

Definition at line 39 of file simple_tolerance_termination.hpp.

References mlpack::amf::SimpleToleranceTermination< MatType >::c_index, mlpack::amf::SimpleToleranceTermination< MatType >::c_indexOld, mlpack::amf::SimpleToleranceTermination< MatType >::iteration, mlpack::amf::SimpleToleranceTermination< MatType >::residue, mlpack::amf::SimpleToleranceTermination< MatType >::residueOld, mlpack::amf::SimpleToleranceTermination< MatType >::reverseStepCount, and mlpack::amf::SimpleToleranceTermination< MatType >::V.

template<class MatType > bool \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::IsConverged (arma::mat &W, arma::mat &H)\fC [inline]\fP

Definition at line 54 of file simple_tolerance_termination.hpp.

References mlpack::amf::SimpleToleranceTermination< MatType >::c_index, mlpack::amf::SimpleToleranceTermination< MatType >::c_indexOld, mlpack::amf::SimpleToleranceTermination< MatType >::H, mlpack::amf::SimpleToleranceTermination< MatType >::isCopy, mlpack::amf::SimpleToleranceTermination< MatType >::iteration, mlpack::amf::SimpleToleranceTermination< MatType >::maxIterations, mlpack::amf::SimpleToleranceTermination< MatType >::residue, mlpack::amf::SimpleToleranceTermination< MatType >::residueOld, mlpack::amf::SimpleToleranceTermination< MatType >::reverseStepCount, mlpack::amf::SimpleToleranceTermination< MatType >::reverseStepTolerance, mlpack::amf::SimpleToleranceTermination< MatType >::V, and mlpack::amf::SimpleToleranceTermination< MatType >::W.

template<class MatType > const size_t& \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::Iteration ()\fC [inline]\fP

Definition at line 120 of file simple_tolerance_termination.hpp.

References mlpack::amf::SimpleToleranceTermination< MatType >::iteration.

template<class MatType > const size_t& \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::MaxIterations ()\fC [inline]\fP

Definition at line 121 of file simple_tolerance_termination.hpp.

References mlpack::amf::SimpleToleranceTermination< MatType >::maxIterations.

Member Data Documentation

template<class MatType > double \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::c_index\fC [private]\fP

Definition at line 141 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::Initialize(), and mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

template<class MatType > double \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::c_indexOld\fC [private]\fP

Definition at line 140 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::Initialize(), and mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

template<class MatType > arma::mat \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::H\fC [private]\fP

Definition at line 139 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

template<class MatType > bool \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::isCopy\fC [private]\fP

Definition at line 137 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

template<class MatType > size_t \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::iteration\fC [private]\fP

Definition at line 129 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::Initialize(), mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged(), and mlpack::amf::SimpleToleranceTermination< MatType >::Iteration().

template<class MatType > size_t \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::maxIterations\fC [private]\fP

Definition at line 125 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged(), and mlpack::amf::SimpleToleranceTermination< MatType >::MaxIterations().

template<class MatType > double \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::normOld\fC [private]\fP

Definition at line 132 of file simple_tolerance_termination.hpp.

template<class MatType > double \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::residue\fC [private]\fP

Definition at line 131 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::Index(), mlpack::amf::SimpleToleranceTermination< MatType >::Initialize(), and mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

template<class MatType > double \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::residueOld\fC [private]\fP

Definition at line 130 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::Initialize(), and mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

template<class MatType > size_t \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::reverseStepCount\fC [private]\fP

Definition at line 135 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::Initialize(), and mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

template<class MatType > size_t \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::reverseStepTolerance\fC [private]\fP

Definition at line 134 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

template<class MatType > double \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::tolerance\fC [private]\fP

Definition at line 124 of file simple_tolerance_termination.hpp.

template<class MatType > const MatType* \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::V\fC [private]\fP

Definition at line 127 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::Initialize(), and mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

template<class MatType > arma::mat \fBmlpack::amf::SimpleToleranceTermination\fP< MatType >::W\fC [private]\fP

Definition at line 138 of file simple_tolerance_termination.hpp.

Referenced by mlpack::amf::SimpleToleranceTermination< MatType >::IsConverged().

Author

Generated automatically by Doxygen for MLPACK from the source code.