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
enviroment::fib::cFibObjectFitnessBasicAlgorithm Class Reference

#include <cFibObjectFitnessBasicAlgorithm.h>

Inheritance diagram for enviroment::fib::cFibObjectFitnessBasicAlgorithm:
Collaboration diagram for enviroment::fib::cFibObjectFitnessBasicAlgorithm:

List of all members.

Public Member Functions

 cFibObjectFitnessBasicAlgorithm ()
 cFibObjectFitnessBasicAlgorithm (cFibIndividual *pInOriginalIndividual, double dInWeightDistanceToOriginal=1.0, double dInWeightSize=1.0, double dInWeightEvaluationTime=1.0)
 cFibObjectFitnessBasicAlgorithm (cFibElement *pOriginalFibElement, double dInWeightDistanceToOriginal=1.0, double dInWeightSize=1.0, double dInWeightEvaluationTime=1.0)
 cFibObjectFitnessBasicAlgorithm (const cFibElement &inOriginalFibElement, double dInWeightDistanceToOriginal=1.0, double dInWeightSize=1.0, double dInWeightEvaluationTime=1.0)
 cFibObjectFitnessBasicAlgorithm (const cFibObjectFitnessBasicAlgorithm &objectFitnessAlgorithm)
virtual ~cFibObjectFitnessBasicAlgorithm ()
virtual cFibObjectFitnessBasicevalueFitness (const cIndividual &individual) const
virtual cFibObjectFitnessBasicevalueFitness (const cFibIndividual &individual) const
virtual cFibObjectFitnessBasicevalueFitness (const cFibElement *fibObject) const
virtual double evalueDistance (const cFibElement *fibElement, const cFibElement *fibElementArea=NULL) const
virtual double evalueDistance (list< pair< cVectorPosition, list< cVectorProperty > > > &liPointWithProperties) const
virtual double evalueDistanceInArea (list< pair< cVectorPosition, list< cVectorProperty > > > &liPointWithProperties, list< pair< cVectorPosition, list< cVectorProperty > > > &liPointWithPropertiesOfArea) const
virtual string getClassName () const
virtual bool setOriginalIndividual (cIndividual *pInOriginalIndividual)
virtual bool setOriginalIndividual (cFibIndividual *pInOriginalIndividual)
virtual bool setOriginalFibObject (cFibElement *pInOriginalFibObject)
virtual
cFibObjectFitnessBasicAlgorithm
clone () const
virtual const
cFibObjectFitnessBasic
getBestFitness () const
virtual const
cFibObjectFitnessBasic
getWorstCaseFitness () const
double getWeightDistanceToOriginal () const
double getWeightSize () const
double getWeightEvaluationTime () const
- Public Member Functions inherited from enviroment::fib::cFibObjectFitnessAlgorithm
 cFibObjectFitnessAlgorithm ()
 cFibObjectFitnessAlgorithm (cFibIndividual *pInOriginalIndividual)
 cFibObjectFitnessAlgorithm (cFibElement *pInOriginalFibObject)
 cFibObjectFitnessAlgorithm (const cFibElement &inOriginalFibObject)
 cFibObjectFitnessAlgorithm (const cFibObjectFitnessAlgorithm &objectFitnessAlgorithm)
virtual ~cFibObjectFitnessAlgorithm ()
cFibIndividualgetOriginalIndividual ()
const cFibElementgetOriginalFibObject ()
const cRootgetOriginalIndividualRoot ()
const cEvaluePositionListgetOriginalPositionList () const
- Public Member Functions inherited from enviroment::cObjectFitnessAlgorithm
 cObjectFitnessAlgorithm ()
 cObjectFitnessAlgorithm (cIndividual *pInOriginalIndividual)
 cObjectFitnessAlgorithm (const cObjectFitnessAlgorithm &objectFitnessAlgorithm)
virtual ~cObjectFitnessAlgorithm ()=0
const cIndividualgetOriginalIndividual () const

Protected Attributes

double dWeightDistanceToOriginal
double dWeightSize
double dWeightEvaluationTime
cFibObjectFitnessBasicpBestCaseFitness
cFibObjectFitnessBasicpWorstCaseFitness
- Protected Attributes inherited from enviroment::fib::cFibObjectFitnessAlgorithm
cRootpOriginalRoots
bool bOriginalIsFibObject
cEvaluePositionListpEvaluedPositionsDataOriginal
bool bOriginalEvalued
unsigned int uiNumberOfDimensions
doubleFibpdDirectionMinimum
doubleFibpdDirectionMaximum
doubleFibpdDirectionScaling
doubleFibpdDirectionSize
bool bStandardDimensionDomain
cDomainVectorBasispVecDomainDimension
unsigned long long ulNumberOfPoints
- Protected Attributes inherited from enviroment::cObjectFitnessAlgorithm
cIndividualpOriginalIndividual
pthread_mutex_t mutexOriginalIndividual

Additional Inherited Members

- Protected Member Functions inherited from enviroment::fib::cFibObjectFitnessAlgorithm
cRootcreateRootTree (const cFibElement *pFibObject)
bool evalueOriginalDimensions () const

Detailed Description

Definition at line 72 of file cFibObjectFitnessBasicAlgorithm.h.


Constructor & Destructor Documentation

enviroment::fib::cFibObjectFitnessBasicAlgorithm::cFibObjectFitnessBasicAlgorithm ( )

constructor

enviroment::fib::cFibObjectFitnessBasicAlgorithm::cFibObjectFitnessBasicAlgorithm ( cFibIndividual pInOriginalIndividual,
double  dInWeightDistanceToOriginal = 1.0,
double  dInWeightSize = 1.0,
double  dInWeightEvaluationTime = 1.0 
)

constructor

See also:
cFibObjectFitnessBasic
Parameters:
pInOriginalIndividualthe individual with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists
dInWeightDistanceToOriginalthe weight for the distance to original value
dInWeightSizethe weight for the Fib object size value
dInWeightEvaluationTimethe weight for the evaluation time of the Fib object
enviroment::fib::cFibObjectFitnessBasicAlgorithm::cFibObjectFitnessBasicAlgorithm ( cFibElement pOriginalFibElement,
double  dInWeightDistanceToOriginal = 1.0,
double  dInWeightSize = 1.0,
double  dInWeightEvaluationTime = 1.0 
)

constructor

See also:
cFibObjectFitnessBasic
Parameters:
pOriginalFibElementthe Fib object with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists
dInWeightDistanceToOriginalthe weight for the distance to original value
dInWeightSizethe weight for the Fib object size value
dInWeightEvaluationTimethe weight for the evaluation time of the Fib object
enviroment::fib::cFibObjectFitnessBasicAlgorithm::cFibObjectFitnessBasicAlgorithm ( const cFibElement inOriginalFibElement,
double  dInWeightDistanceToOriginal = 1.0,
double  dInWeightSize = 1.0,
double  dInWeightEvaluationTime = 1.0 
)

constructor

See also:
cFibObjectFitnessBasic
Parameters:
inOriginalFibElementthe Fib object with which the fitness should be evalued
dInWeightDistanceToOriginalthe weight for the distance to original value
dInWeightSizethe weight for the Fib object size value
dInWeightEvaluationTimethe weight for the evaluation time of the Fib object
enviroment::fib::cFibObjectFitnessBasicAlgorithm::cFibObjectFitnessBasicAlgorithm ( const cFibObjectFitnessBasicAlgorithm objectFitnessAlgorithm)

copyconstructor

Parameters:
objectFitnessAlgorithmthe cFibObjectFitnessBasicAlgorithm object to copy
virtual enviroment::fib::cFibObjectFitnessBasicAlgorithm::~cFibObjectFitnessBasicAlgorithm ( )
virtual

destructor


Member Function Documentation

virtual cFibObjectFitnessBasicAlgorithm* enviroment::fib::cFibObjectFitnessBasicAlgorithm::clone ( ) const
virtual

This Method clones this object.

Returns:
a clone of this object

Implements enviroment::fib::cFibObjectFitnessAlgorithm.

virtual double enviroment::fib::cFibObjectFitnessBasicAlgorithm::evalueDistance ( const cFibElement fibElement,
const cFibElement fibElementArea = NULL 
) const
virtual

This method evalues the difference betwean the orginal Fib object and the given Fib object fibObject on an area. It is the sum of the distances of all values of propertyvectorelements betwean the represented and original Fib object of all positions which are inside the dimension bounderies and are in fibObjectArea, if given (not NULL).

Parameters:
fibObjectthe Fib object to which the difference is to evalue
fibObjectAreaif given (not NULL) the points/positions of this (evalued) Fib object are the positions for which the distance is evalued (other points will be ignored)
Returns:
a value for the difference betwean the orginal Fib object and the given Fib object fibObject, or -1.0 if an error occured
virtual double enviroment::fib::cFibObjectFitnessBasicAlgorithm::evalueDistance ( list< pair< cVectorPosition, list< cVectorProperty > > > &  liPointWithProperties) const
virtual

This method evalues the difference betwean the orginal Fib object and the given points with ther properties. It is the sum of the distances of all values of propertyvectorelements betwean the represented and original Fib object of all positions which are inside the dimension bounderies.

Parameters:
liPointWithPropertiesthe list with the points and ther properties for which to evalue the distance
Returns:
a value for the difference betwean the orginal Fib object and the given liPointWithProperties, or -1.0 if an error occured
virtual double enviroment::fib::cFibObjectFitnessBasicAlgorithm::evalueDistanceInArea ( list< pair< cVectorPosition, list< cVectorProperty > > > &  liPointWithProperties,
list< pair< cVectorPosition, list< cVectorProperty > > > &  liPointWithPropertiesOfArea 
) const
virtual

This method evalues the difference betwean the orginal Fib object and the given Fib object fibObject on an area. It is the sum of the distances of all values of propertyvectorelements betwean the represented and original Fib object of all positions which are inside the dimension bounderies and are in fibObjectArea.

Parameters:
liPointWithPropertiesthe list with the points and ther properties for which to evalue the distance
liPointWithPropertiesOfAreathe points/positions of the positions for which the distance is evalued (other points will be ignored) (the list< cVectorProperty > is included for consistencie, but it is ignored in this method)
Returns:
a value for the difference betwean the orginal Fib object and the given liPointWithProperties, or -1.0 if an error occured
virtual cFibObjectFitnessBasic* enviroment::fib::cFibObjectFitnessBasicAlgorithm::evalueFitness ( const cIndividual individual) const
virtual

This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.

See also:
pOriginalIndividual
Parameters:
individualthe cFibIndividual for which a fitnessobject should be created
Returns:
the fitnessobject for the fitness of the given individual or NULL, if no fitness could be created

Implements enviroment::cObjectFitnessAlgorithm.

virtual cFibObjectFitnessBasic* enviroment::fib::cFibObjectFitnessBasicAlgorithm::evalueFitness ( const cFibIndividual individual) const
virtual

This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.

See also:
pOriginalIndividual
Parameters:
individualthe cFibIndividual for which a fitnessobject should be created
Returns:
the fitnessobject for the fitness of the given individual or NULL, if no fitness could be created

Implements enviroment::fib::cFibObjectFitnessAlgorithm.

virtual cFibObjectFitnessBasic* enviroment::fib::cFibObjectFitnessBasicAlgorithm::evalueFitness ( const cFibElement fibObject) const
virtual

This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.

See also:
pOriginalIndividual
Parameters:
fibObjectthe Fib object for which a fitnessobject should be created
Returns:
the fitnessobject for the fitness of the given fibObject or NULL, if no fitness could be created

Implements enviroment::fib::cFibObjectFitnessAlgorithm.

virtual const cFibObjectFitnessBasic* enviroment::fib::cFibObjectFitnessBasicAlgorithm::getBestFitness ( ) const
virtual

This Method returns the best possible fitness the algorithm can create. No individual with a better/ higher fitness can be created with this algorithm. The best case fitness is an cFibObjectFitness object with all fitnessvalues set to 0.

Returns:
a cFibObjectFitness object with all fitnessvalues set to 0

Implements enviroment::fib::cFibObjectFitnessAlgorithm.

virtual string enviroment::fib::cFibObjectFitnessBasicAlgorithm::getClassName ( ) const
virtual
Returns:
the name of this class

Reimplemented from enviroment::fib::cFibObjectFitnessAlgorithm.

double enviroment::fib::cFibObjectFitnessBasicAlgorithm::getWeightDistanceToOriginal ( ) const
See also:
dWeightDistanceToOriginal
Returns:
the weight for the dDistanceToOriginal value
double enviroment::fib::cFibObjectFitnessBasicAlgorithm::getWeightEvaluationTime ( ) const
See also:
dWeightEvaluationTime
Returns:
the weight for the lEvaluationTime value
double enviroment::fib::cFibObjectFitnessBasicAlgorithm::getWeightSize ( ) const
See also:
dWeightSize
Returns:
the weight for the lSize value
virtual const cFibObjectFitnessBasic* enviroment::fib::cFibObjectFitnessBasicAlgorithm::getWorstCaseFitness ( ) const
virtual

This Method returns the worst case fitness for the algorithm and originalindividual. An individual with the worst case fitness can easyly be created. This is the fitness of the originalindividual. If no originalindividual is set NULL is returned.

Returns:
a refernce to the fitness of the originalindividual or NULL, ff no originalindividual is set

Implements enviroment::fib::cFibObjectFitnessAlgorithm.

virtual bool enviroment::fib::cFibObjectFitnessBasicAlgorithm::setOriginalFibObject ( cFibElement pInOriginalFibObject)
virtual

This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.

See also:
getOriginalIndividual()
pOriginalIndividual
Parameters:
pInOriginalFibObjectthe Fib object with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists
Returns:
true if the originalindividual is set to pInOriginalFibObject, else false

Reimplemented from enviroment::fib::cFibObjectFitnessAlgorithm.

virtual bool enviroment::fib::cFibObjectFitnessBasicAlgorithm::setOriginalIndividual ( cIndividual pInOriginalIndividual)
virtual

This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.

See also:
getOriginalIndividual()
pOriginalIndividual
Parameters:
pInOriginalIndividuala point to the originalindividual to set Beware: this object won't be copied, so don't delete it as long as this object exists
Returns:
true if the originalindividual is set to originalIndividum, else false

Reimplemented from enviroment::fib::cFibObjectFitnessAlgorithm.

virtual bool enviroment::fib::cFibObjectFitnessBasicAlgorithm::setOriginalIndividual ( cFibIndividual pInOriginalIndividual)
virtual

This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.

See also:
getOriginalIndividual()
pOriginalIndividual
Parameters:
pInOriginalIndividuala point to the fib -originalindividual to set Beware: this object won't be copied, so don't delete it as long as this object exists
Returns:
true if the originalindividual is set to pInOriginalIndividual, else false

Reimplemented from enviroment::fib::cFibObjectFitnessAlgorithm.


Member Data Documentation

double enviroment::fib::cFibObjectFitnessBasicAlgorithm::dWeightDistanceToOriginal
protected

The weight for the dDistanceToOriginal value.

Definition at line 79 of file cFibObjectFitnessBasicAlgorithm.h.

double enviroment::fib::cFibObjectFitnessBasicAlgorithm::dWeightEvaluationTime
protected

The weight for the lEvaluationTime value.

Definition at line 89 of file cFibObjectFitnessBasicAlgorithm.h.

double enviroment::fib::cFibObjectFitnessBasicAlgorithm::dWeightSize
protected

The weight for the lSize value.

Definition at line 84 of file cFibObjectFitnessBasicAlgorithm.h.

cFibObjectFitnessBasic* enviroment::fib::cFibObjectFitnessBasicAlgorithm::pBestCaseFitness
mutableprotected

A pointer to the best possible fitness the algorithm can create. No individual with a better/ higher fitness can be created with this algorithm. The best case fitness is an cFibObjectFitness object with all fitnessvalues set to 0.

Definition at line 100 of file cFibObjectFitnessBasicAlgorithm.h.

cFibObjectFitnessBasic* enviroment::fib::cFibObjectFitnessBasicAlgorithm::pWorstCaseFitness
mutableprotected

A pointer to the worst case fitness for the algorithm and originalindividual. An individual with the worst case fitness can easily be created. This is the fitness of the originalindividual. If no originalindividual is set NULL is returned.

Definition at line 109 of file cFibObjectFitnessBasicAlgorithm.h.


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