The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fib::algorithms::nD1::cOneAryFunction< tX, tY > Class Template Reference

#include <cOneAryFunction.h>

Inheritance diagram for fib::algorithms::nD1::cOneAryFunction< tX, tY >:

List of all members.

Public Member Functions

virtual tY evalue (const tX &x) const =0
virtual void print (ostream &outputStream) const =0
virtual pair< unsigned long, tY > evalueError (const vector< cDataPoint< tX, tY > > &vecInput) const =0
virtual tY evalueErrorMax (const vector< cDataPoint< tX, tY > > &vecData, const tY maxYError) const =0
virtual pair< unsigned long, tY > evalueError (const vector< cDataPointRange< tX, tY > > &vecInput) const =0
virtual tY evalueErrorMax (const vector< cDataPointRange< tX, tY > > &vecData, const tY maxYError) const =0
virtual cUnderFunctiontoFibUnderFunction (cFibVariable *pVariable) const =0
virtual bool evalue (const vector< cDataPoint< tX, tY > > &vecData)=0

Detailed Description

template<class tX, class tY>
class fib::algorithms::nD1::cOneAryFunction< tX, tY >

Definition at line 58 of file cOneAryFunction.h.


Member Function Documentation

template<class tX , class tY >
virtual tY fib::algorithms::nD1::cOneAryFunction< tX, tY >::evalue ( const tX &  x) const
pure virtual

This method evalues the value of this function.

Parameters:
xthe input value for the function
Returns:
the evalued value f( x )

Implemented in fib::algorithms::nD1::cSpline< tX, tY >, and fib::algorithms::nD1::cPolynom< tX, tY >.

template<class tX , class tY >
virtual bool fib::algorithms::nD1::cOneAryFunction< tX, tY >::evalue ( const vector< cDataPoint< tX, tY > > &  vecData)
pure virtual

This function evalues the function for the given data. The evalued function will have the order n of the number of given datapoints.

Parameters:
vecDatathe data for which to evalue the function
Returns:
if the function for the datapoints could be evalued: the factors of the evalued function in this function and true, else false and the factors of this function not changed

Implemented in fib::algorithms::nD1::cPolynom< tX, tY >, and fib::algorithms::nD1::cSpline< tX, tY >.

template<class tX , class tY >
virtual pair<unsigned long, tY> fib::algorithms::nD1::cOneAryFunction< tX, tY >::evalueError ( const vector< cDataPoint< tX, tY > > &  vecInput) const
pure virtual

This method evalues the error of the given datapoints to the values this function evalues to.

The evaluation of the function will be done by evalue(). The error will just be counted, if it is greater than the SAVE_BOUNDERY.

See also:
evalue()
Parameters:
vecInputthe data for wich the error is to evalue
Returns:
a pair with two values:
  • the first value is the number of datapoints evalued wrong
  • the second value is the sum of the error of all datapoints

Implemented in fib::algorithms::nD1::cSpline< tX, tY >, and fib::algorithms::nD1::cPolynom< tX, tY >.

template<class tX , class tY >
virtual pair<unsigned long, tY> fib::algorithms::nD1::cOneAryFunction< tX, tY >::evalueError ( const vector< cDataPointRange< tX, tY > > &  vecInput) const
pure virtual

This method evalues the error of the given range datapoints to the values this function evalues to.

The evaluation of the function will be done by evalue(). A datapoint has an error, if it lay outside the datpoint range. The error is it's distance to the neares datapoint boundery. The error will just be counted, if it is greater than the SAVE_BOUNDERY.

See also:
evalue()
Parameters:
vecInputthe data for wich the error is to evalue
Returns:
a pair with two values:
  • the first value is the number of datapoints evalued wrong
  • the second value is the sum of the error of all datapoints

Implemented in fib::algorithms::nD1::cSpline< tX, tY >, and fib::algorithms::nD1::cPolynom< tX, tY >.

template<class tX , class tY >
virtual tY fib::algorithms::nD1::cOneAryFunction< tX, tY >::evalueErrorMax ( const vector< cDataPoint< tX, tY > > &  vecData,
const tY  maxYError 
) const
pure virtual

This method evalues the error of the given datapoints to the values this function evalues to. This function will stop the evaluation, if the maximum error maxYError was reached.

The evaluation of the function will be done by evalue(). The error will just be counted, if it is greater than the SAVE_BOUNDERY.

See also:
evalue()
Parameters:
vecInputthe data for wich the error is to evalue
maxYErrorthe maximum error, at which the evaluation should stop
Returns:
the sum of the error of all datapoints, but maximal maxYError

Implemented in fib::algorithms::nD1::cSpline< tX, tY >, and fib::algorithms::nD1::cPolynom< tX, tY >.

template<class tX , class tY >
virtual tY fib::algorithms::nD1::cOneAryFunction< tX, tY >::evalueErrorMax ( const vector< cDataPointRange< tX, tY > > &  vecData,
const tY  maxYError 
) const
pure virtual

This method evalues the error of the given datapoints to the values this function evalues to. This function will stop the evaluation, if the maximum error maxYError was reached.

The evaluation of the function will be done by evalue(). A datapoint has an error, if it lay outside the datpoint range. The error is it's distance to the neares datapoint boundery. The error will just be counted, if it is greater than the SAVE_BOUNDERY.

See also:
evalue()
Parameters:
vecInputthe data for wich the error is to evalue
maxYErrorthe maximum error, at which the evaluation should stop
Returns:
the sum of the error of all datapoints, but maximal maxYError

Implemented in fib::algorithms::nD1::cSpline< tX, tY >, and fib::algorithms::nD1::cPolynom< tX, tY >.

template<class tX , class tY >
virtual void fib::algorithms::nD1::cOneAryFunction< tX, tY >::print ( ostream &  outputStream) const
pure virtual

This method prints the given this function to the given stream.

Parameters:
outputStreamthe stream wher to print this function to

Implemented in fib::algorithms::nD1::cSpline< tX, tY >, and fib::algorithms::nD1::cPolynom< tX, tY >.

template<class tX , class tY >
virtual cUnderFunction* fib::algorithms::nD1::cOneAryFunction< tX, tY >::toFibUnderFunction ( cFibVariable pVariable) const
pure virtual

This function converts this function, into an fib -underfunction. Beware: You have to delete the returned fib -underfunction.

Parameters:
pVariablethe variable (x) for the function
Returns:
a pointer to the fib -underfunction, wich represents the same function as this function

Implemented in fib::algorithms::nD1::cPolynom< tX, tY >, and fib::algorithms::nD1::cSpline< tX, tY >.


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