Qualia  0.2
Public Member Functions | List of all members
Function Class Referenceabstract

#include <Function.h>

Inheritance diagram for Function:
Inheritance graph
[legend]

Public Member Functions

 Function ()
 
virtual ~Function ()
 
virtual void init ()
 Initializes the function. More...
 
virtual unsigned nInputs () const =0
 Returns the number of inputs. More...
 
virtual unsigned nOutputs () const =0
 Returns the number of outputs. More...
 
virtual void setInputs (const real *input)
 Sets the value of the inputs. More...
 
virtual void getOutputs (real *output) const
 Get the value of the outputs. More...
 
virtual void setInput (int i, real x)=0
 Sets input i to value x. More...
 
virtual float getOutput (int i) const =0
 Get output i. More...
 
virtual void propagate ()=0
 Propagates inputs to outputs. More...
 
virtual void save (XFile *file)=0
 Saves to file. More...
 
virtual void load (XFile *file)=0
 Loads from file. More...
 

Detailed Description

An abstract class for a feed-forward function, such as a NeuralNetwork.

Constructor & Destructor Documentation

Function::Function ( )
inline
virtual Function::~Function ( )
inlinevirtual

Member Function Documentation

virtual float Function::getOutput ( int  i) const
pure virtual

Get output i.

Implemented in NeuralNetwork, and QFunction.

void Function::getOutputs ( real output) const
virtual

Get the value of the outputs.

Reimplemented in NeuralNetwork.

virtual void Function::init ( )
inlinevirtual

Initializes the function.

Reimplemented in NeuralNetwork, and QFunction.

virtual void Function::load ( XFile file)
pure virtual

Loads from file.

Implemented in NeuralNetwork, GradientFunction, and QFunction.

virtual unsigned Function::nInputs ( ) const
pure virtual

Returns the number of inputs.

Implemented in NeuralNetwork, and QFunction.

virtual unsigned Function::nOutputs ( ) const
pure virtual

Returns the number of outputs.

Implemented in NeuralNetwork, and QFunction.

virtual void Function::propagate ( )
pure virtual

Propagates inputs to outputs.

Implemented in NeuralNetwork, and QFunction.

virtual void Function::save ( XFile file)
pure virtual

Saves to file.

Implemented in NeuralNetwork, GradientFunction, and QFunction.

virtual void Function::setInput ( int  i,
real  x 
)
pure virtual

Sets input i to value x.

Implemented in NeuralNetwork, and QFunction.

void Function::setInputs ( const real input)
virtual

Sets the value of the inputs.

Reimplemented in NeuralNetwork.


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