HOG2
Public Member Functions | Protected Attributes | List of all members
FunctionApproximator Class Referenceabstract

#include <FunctionApproximator.h>

Inheritance diagram for FunctionApproximator:
Inheritance graph
[legend]

Public Member Functions

 FunctionApproximator ()
 
virtual ~FunctionApproximator ()
 
virtual void save (const char *)=0
 
virtual void save (FILE *)=0
 
virtual void load (const char *)=0
 
virtual void load (FILE *)=0
 
virtual void load (const FunctionApproximator *)=0
 
virtual double train (std::vector< double > &input, std::vector< double > &output2)=0
 
virtual double * test (const std::vector< double > &input)=0
 
virtual double train (std::vector< unsigned int > &input, std::vector< double > &output2)=0
 
virtual double * test (const std::vector< unsigned int > &input)=0
 
virtual double GetInput (std::vector< double > &input, const std::vector< double > &target)=0
 
virtual void setLearnRate (double)
 
virtual double getLearnRate ()
 
void setOutputActivation (tActivation t)
 
tActivation getOutputActivation ()
 
virtual int getNumInputs ()
 
virtual double getInputWeight (int inp, int outp=0)
 
virtual void Print ()=0
 

Protected Attributes

double rate
 
tActivation outputActivation
 

Detailed Description

Definition at line 25 of file FunctionApproximator.h.

Constructor & Destructor Documentation

◆ FunctionApproximator()

FunctionApproximator::FunctionApproximator ( )
inline

Definition at line 27 of file FunctionApproximator.h.

◆ ~FunctionApproximator()

virtual FunctionApproximator::~FunctionApproximator ( )
inlinevirtual

Definition at line 28 of file FunctionApproximator.h.

Member Function Documentation

◆ GetInput()

virtual double FunctionApproximator::GetInput ( std::vector< double > &  input,
const std::vector< double > &  target 
)
pure virtual

Implemented in LinearRegression, LogisticRegression, and NN.

◆ getInputWeight()

virtual double FunctionApproximator::getInputWeight ( int  inp,
int  outp = 0 
)
inlinevirtual

Reimplemented in LinearRegression, LogisticRegression, perceptron, and NN.

Definition at line 57 of file FunctionApproximator.h.

◆ getLearnRate()

double FunctionApproximator::getLearnRate ( )
virtual

Definition at line 12 of file FunctionApproximator.cpp.

References rate.

◆ getNumInputs()

virtual int FunctionApproximator::getNumInputs ( )
inlinevirtual

Reimplemented in LinearRegression, LogisticRegression, perceptron, and NN.

Definition at line 56 of file FunctionApproximator.h.

◆ getOutputActivation()

tActivation FunctionApproximator::getOutputActivation ( )
inline

Definition at line 53 of file FunctionApproximator.h.

References outputActivation.

◆ load() [1/3]

virtual void FunctionApproximator::load ( const char *  )
pure virtual

◆ load() [2/3]

virtual void FunctionApproximator::load ( const FunctionApproximator )
pure virtual

◆ load() [3/3]

virtual void FunctionApproximator::load ( FILE *  )
pure virtual

◆ Print()

virtual void FunctionApproximator::Print ( )
pure virtual

◆ save() [1/2]

virtual void FunctionApproximator::save ( const char *  )
pure virtual

◆ save() [2/2]

virtual void FunctionApproximator::save ( FILE *  )
pure virtual

◆ setLearnRate()

void FunctionApproximator::setLearnRate ( double  _rate)
virtual

Definition at line 17 of file FunctionApproximator.cpp.

References rate.

◆ setOutputActivation()

void FunctionApproximator::setOutputActivation ( tActivation  t)
inline

Definition at line 51 of file FunctionApproximator.h.

References outputActivation.

◆ test() [1/2]

virtual double* FunctionApproximator::test ( const std::vector< double > &  input)
pure virtual

◆ test() [2/2]

virtual double* FunctionApproximator::test ( const std::vector< unsigned int > &  input)
pure virtual

◆ train() [1/2]

virtual double FunctionApproximator::train ( std::vector< double > &  input,
std::vector< double > &  output2 
)
pure virtual

◆ train() [2/2]

virtual double FunctionApproximator::train ( std::vector< unsigned int > &  input,
std::vector< double > &  output2 
)
pure virtual

Member Data Documentation

◆ outputActivation

tActivation FunctionApproximator::outputActivation
protected

◆ rate

double FunctionApproximator::rate
protected

The documentation for this class was generated from the following files: