--- /dev/null
+#ifndef __FITNESS_WSTI_H
+#define __FITNESS_WSTI_H
+
+#include <cmath>
+
+#include "../gene.h"
+
+using namespace std;
+
+namespace genetic {
+ /**
+ * Just an example Fitness function.
+ */
+ template < typename _Chromosome >
+ class FitnessExample {
+ protected:
+ _Chromosome chromosome;
+ public:
+ FitnessExample(_Chromosome& _chromosome)
+ : chromosome(_chromosome.get()) {
+ }
+
+ /*
+ * Some calculations here...
+ */
+ double calculate() {
+ return 0;
+ }
+ };
+}
+
+#endif /* __FITNESS_WSTI_H */