The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
|
#include <cFibObjectFitnessBasicAlgorithm.h>
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 cFibObjectFitnessBasic * | evalueFitness (const cIndividual &individual) const |
virtual cFibObjectFitnessBasic * | evalueFitness (const cFibIndividual &individual) const |
virtual cFibObjectFitnessBasic * | evalueFitness (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 () |
cFibIndividual * | getOriginalIndividual () |
const cFibElement * | getOriginalFibObject () |
const cRoot * | getOriginalIndividualRoot () |
const cEvaluePositionList * | getOriginalPositionList () const |
Public Member Functions inherited from enviroment::cObjectFitnessAlgorithm | |
cObjectFitnessAlgorithm () | |
cObjectFitnessAlgorithm (cIndividual *pInOriginalIndividual) | |
cObjectFitnessAlgorithm (const cObjectFitnessAlgorithm &objectFitnessAlgorithm) | |
virtual | ~cObjectFitnessAlgorithm ()=0 |
const cIndividual * | getOriginalIndividual () const |
Protected Attributes | |
double | dWeightDistanceToOriginal |
double | dWeightSize |
double | dWeightEvaluationTime |
cFibObjectFitnessBasic * | pBestCaseFitness |
cFibObjectFitnessBasic * | pWorstCaseFitness |
Protected Attributes inherited from enviroment::fib::cFibObjectFitnessAlgorithm | |
cRoot * | pOriginalRoots |
bool | bOriginalIsFibObject |
cEvaluePositionList * | pEvaluedPositionsDataOriginal |
bool | bOriginalEvalued |
unsigned int | uiNumberOfDimensions |
doubleFib * | pdDirectionMinimum |
doubleFib * | pdDirectionMaximum |
doubleFib * | pdDirectionScaling |
doubleFib * | pdDirectionSize |
bool | bStandardDimensionDomain |
cDomainVectorBasis * | pVecDomainDimension |
unsigned long long | ulNumberOfPoints |
Protected Attributes inherited from enviroment::cObjectFitnessAlgorithm | |
cIndividual * | pOriginalIndividual |
pthread_mutex_t | mutexOriginalIndividual |
Additional Inherited Members | |
Protected Member Functions inherited from enviroment::fib::cFibObjectFitnessAlgorithm | |
cRoot * | createRootTree (const cFibElement *pFibObject) |
bool | evalueOriginalDimensions () const |
Definition at line 72 of file cFibObjectFitnessBasicAlgorithm.h.
enviroment::fib::cFibObjectFitnessBasicAlgorithm::cFibObjectFitnessBasicAlgorithm | ( | ) |
constructor
enviroment::fib::cFibObjectFitnessBasicAlgorithm::cFibObjectFitnessBasicAlgorithm | ( | cFibIndividual * | pInOriginalIndividual, |
double | dInWeightDistanceToOriginal = 1.0 , |
||
double | dInWeightSize = 1.0 , |
||
double | dInWeightEvaluationTime = 1.0 |
||
) |
constructor
pInOriginalIndividual | the 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 |
dInWeightDistanceToOriginal | the weight for the distance to original value |
dInWeightSize | the weight for the Fib object size value |
dInWeightEvaluationTime | the 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
pOriginalFibElement | the 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 |
dInWeightDistanceToOriginal | the weight for the distance to original value |
dInWeightSize | the weight for the Fib object size value |
dInWeightEvaluationTime | the 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
inOriginalFibElement | the Fib object with which the fitness should be evalued |
dInWeightDistanceToOriginal | the weight for the distance to original value |
dInWeightSize | the weight for the Fib object size value |
dInWeightEvaluationTime | the weight for the evaluation time of the Fib object |
enviroment::fib::cFibObjectFitnessBasicAlgorithm::cFibObjectFitnessBasicAlgorithm | ( | const cFibObjectFitnessBasicAlgorithm & | objectFitnessAlgorithm | ) |
copyconstructor
objectFitnessAlgorithm | the cFibObjectFitnessBasicAlgorithm object to copy |
|
virtual |
destructor
|
virtual |
This Method clones this object.
Implements enviroment::fib::cFibObjectFitnessAlgorithm.
|
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).
fibObject | the Fib object to which the difference is to evalue |
fibObjectArea | if 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) |
|
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.
liPointWithProperties | the list with the points and ther properties for which to evalue the distance |
|
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.
liPointWithProperties | the list with the points and ther properties for which to evalue the distance |
liPointWithPropertiesOfArea | the 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) |
|
virtual |
This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.
individual | the cFibIndividual for which a fitnessobject should be created |
Implements enviroment::cObjectFitnessAlgorithm.
|
virtual |
This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.
individual | the cFibIndividual for which a fitnessobject should be created |
Implements enviroment::fib::cFibObjectFitnessAlgorithm.
|
virtual |
This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.
fibObject | the Fib object for which a fitnessobject should be created |
Implements enviroment::fib::cFibObjectFitnessAlgorithm.
|
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.
Implements enviroment::fib::cFibObjectFitnessAlgorithm.
|
virtual |
Reimplemented from enviroment::fib::cFibObjectFitnessAlgorithm.
double enviroment::fib::cFibObjectFitnessBasicAlgorithm::getWeightDistanceToOriginal | ( | ) | const |
double enviroment::fib::cFibObjectFitnessBasicAlgorithm::getWeightEvaluationTime | ( | ) | const |
double enviroment::fib::cFibObjectFitnessBasicAlgorithm::getWeightSize | ( | ) | 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.
Implements enviroment::fib::cFibObjectFitnessAlgorithm.
|
virtual |
This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.
pInOriginalFibObject | the 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 |
Reimplemented from enviroment::fib::cFibObjectFitnessAlgorithm.
|
virtual |
This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.
pInOriginalIndividual | a point to the originalindividual to set Beware: this object won't be copied, so don't delete it as long as this object exists |
Reimplemented from enviroment::fib::cFibObjectFitnessAlgorithm.
|
virtual |
This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.
pInOriginalIndividual | a 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 |
Reimplemented from enviroment::fib::cFibObjectFitnessAlgorithm.
|
protected |
The weight for the dDistanceToOriginal value.
Definition at line 79 of file cFibObjectFitnessBasicAlgorithm.h.
|
protected |
The weight for the lEvaluationTime value.
Definition at line 89 of file cFibObjectFitnessBasicAlgorithm.h.
|
protected |
The weight for the lSize value.
Definition at line 84 of file cFibObjectFitnessBasicAlgorithm.h.
|
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.
|
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.