source: cpp/frams/model/similarity/simil-measure.h @ 1100

Last change on this file since 1100 was 1052, checked in by Maciej Komosinski, 4 years ago

Added a helper function; cosmetic changes in names and descriptions

File size: 900 bytes
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5#ifndef _SIMIL_MEASURE_H
6#define _SIMIL_MEASURE_H
7
8#include "frams/model/similarity/measure-greedy.h"
9#include "frams/model/similarity/measure-hungarian.h"
10#include "frams/model/similarity/measure-distribution.h"
11
12class SimilMeasure
13{
14public:
15        int type;
16
17        SimilMeasureGreedy simil_measure_greedy;
18        SimilMeasureHungarian simil_measure_hungarian;
19        SimilMeasureDistribution simil_measure_distribution;
20
21        /// Interface to local parameters
22        Param localpar;
23
24        SimilMeasure();
25        virtual ~SimilMeasure() {};
26        SimilMeasureBase *currentMeasure();
27        double evaluateDistance(const Geno *G0, const Geno *G1);
28
29        #define STATRICKCLASS SimilMeasure
30        PARAMPROCDEF(p_evaldistance);
31        #undef STATRICKCLASS
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.