Debian Codegraph @

dwtools/Proximity.h

raw symbols SCIP
1 #ifndef _Proximity_h_
2 #define _Proximity_h_
3 /* Proximity.h
4 *
5 * Copyright (C) 1993-2018 David Weenink
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 /*
22 djmw 20020813 GPL header
23 djmw 20110306 Latest modification.
24 */
25
26 #include "TableOfReal.h"
27
28 Thing_define (Proximity, TableOfReal) {
29 };
30
31 void Proximity_init (Proximity me, integer numberOfPoints);
32
33 Thing_define (Dissimilarity, Proximity) {
34 };
35
36 autoDissimilarity Dissimilarity_create (integer numberOfPoints);
37
38 autoDissimilarity Dissimilarity_createLetterRExample (double noiseStd);
39
40 double Dissimilarity_getAdditiveConstant (Dissimilarity me);
41 /*
42 Get the best estimate for the additive constant:
43 "distance = dissimilarity + constant"
44 F. Cailliez (1983), The analytical solution of the additive constant problem, Psychometrika 48, 305-308.
45 */
46
47 Thing_define (Similarity, Proximity) {
48 };
49
50 autoSimilarity Similarity_create (integer numberOfPoints);
51
52 Collection_define (ProximityList, OrderedOf, Proximity) {
53 TableOfRealList asTableOfRealList () {
54 return reinterpret_cast <TableOfRealList> (this);
55 }
56 };
57
58 Collection_define (DissimilarityList, OrderedOf, Dissimilarity) {
59 ProximityList asProximityList () {
60 return reinterpret_cast <ProximityList> (this);
61 }
62 TableOfRealList asTableOfRealList () {
63 return reinterpret_cast <TableOfRealList> (this);
64 }
65 };
66
67 #endif /* _Proximity_h_ */