brainrat-private
5.1.2
sensitivity.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_SENSITIVITY_H
13
#define BRAINRAT_OVERLAP_SENSITIVITY_H
14
15
#include <aims/data/data.h>
16
#include <
brainrat/overlap/overlap_method.h
>
17
18
template
<
class
T >
19
class
Sensitivity
:
public
Overlap_Method
<T>
20
{
21
public
:
22
23
Sensitivity
() ;
24
virtual
~Sensitivity
() { }
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
Sensitivity< T >::Sensitivity
()
33
{
34
}
35
36
37
template
<
class
T >
inline
38
// double Sensitivity< T >::doit( T ref, T test, T true_positive, T ) --> pr calcul specificity
39
double
Sensitivity< T >::doit
( T ref, T test, T true_positive)
40
{
41
double
out;
42
out = (double)true_positive /
43
(
double
)ref ;
44
return
(out);
45
}
46
47
#endif
Overlap_Method
Definition:
overlap_method.h:19
Sensitivity
Definition:
sensitivity.h:20
Sensitivity::Sensitivity
Sensitivity()
Definition:
sensitivity.h:32
Sensitivity::~Sensitivity
virtual ~Sensitivity()
Definition:
sensitivity.h:24
Sensitivity::doit
virtual double doit(T ref, T test, T true_positive)
Definition:
sensitivity.h:39
overlap_method.h
brainrat
overlap
sensitivity.h
Generated by
1.9.1