Robot Simulator of the Robotics Group for Self-Organization of Control: EuclidicDistanceFitnessStrategy Class Reference

# EuclidicDistanceFitnessStrategy Class Reference

This fitness strategy calculate from all double gens (IValue<double>) the euclidic distance to zero. More...

`#include <EuclidicDistanceFitnessStrategy.h>`

Inherits IFitnessStrategy.

Collaboration diagram for EuclidicDistanceFitnessStrategy:
[legend]

List of all members.

## Public Member Functions
| EuclidicDistanceFitnessStrategy ()
| default constructor do nothing
virtual | ~EuclidicDistanceFitnessStrategy ()
| default destructor do nothing
virtual double | getFitness (const Individual *individual)
| this function calculate the euclidic distance of all double gen which individual has.

## Detailed Description

This fitness strategy calculate from all double gens (IValue<double>) the euclidic distance to zero.

## Constructor & Destructor Documentation

EuclidicDistanceFitnessStrategy | ( |  | ) |

default constructor do nothing

~EuclidicDistanceFitnessStrategy | ( |  | ) | `[virtual]`

default destructor do nothing

## Member Function Documentation

double getFitness | ( | const Individual * | individual | ) | `[virtual]`

this function calculate the euclidic distance of all double gen which individual has.

Parameters:

  | individual | (const Individual*) the Individual

Returns:
  (double) the distance

Implements IFitnessStrategy.

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

- EuclidicDistanceFitnessStrategy.h
- EuclidicDistanceFitnessStrategy.cpp