brainrat-private
6.0.4
jaccard.h
Go to the documentation of this file.
1
/* Copyright (C) 2000-2013 CEA
2
*
3
* This software and supporting documentation were developed by
4
* bioPICSEL
5
* CEA/DSV/I²BM/MIRCen/LMN, Batiment 61,
6
* 18, route du Panorama
7
* 92265 Fontenay-aux-Roses
8
* France
9
*/
10
11
12
#ifndef BRAINRAT_OVERLAP_JACCARD_H
13
#define BRAINRAT_OVERLAP_JACCARD_H
14
15
#include <aims/data/data.h>
16
#include <
brainrat/overlap/overlap_method.h
>
17
18
template
<
class
T >
19
class
Jaccard
:
public
Overlap_Method
<T>
20
{
21
public
:
22
23
Jaccard
() ;
24
virtual
~Jaccard
() { }
25
26
// virtual double doit(T ref, T test, T true_positive, T ); --> pr calcul specificity
27
virtual
double
doit
(T ref, T test, T true_positive);
28
29
};
30
31
template
<
class
T >
inline
32
Jaccard< T >::Jaccard
()
33
{
34
}
35
36
37
template
<
class
T >
inline
38
// double Jaccard< T >::doit(T ref, T test, T true_positive, T ) --> pr calcul specificity
39
double
Jaccard< T >::doit
(T ref, T test, T true_positive)
40
{
41
double
out;
42
out = (double)true_positive /
43
( (
double
)ref + (
double
)test - (
double
)true_positive);
44
return
(out);
45
}
46
47
#endif
Jaccard::doit
virtual double doit(T ref, T test, T true_positive)
Definition
jaccard.h:39
Jaccard::Jaccard
Jaccard()
Definition
jaccard.h:32
Jaccard::~Jaccard
virtual ~Jaccard()
Definition
jaccard.h:24
Overlap_Method::Overlap_Method
Overlap_Method()
Definition
overlap_method.h:22
overlap_method.h
brainrat
overlap
jaccard.h
Generated by
1.13.2