IB-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
IBROCBuilder.h
Go to the documentation of this file.
1
/*////////////////////////////////////////////////////////////////////////////
2
Copyright 2018 Istituto Nazionale di Fisica Nucleare
3
4
Licensed under the EUPL, Version 1.2 or - as soon they will be approved by
5
the European Commission - subsequent versions of the EUPL (the "Licence").
6
You may not use this work except in compliance with the Licence.
7
8
You may obtain a copy of the Licence at:
9
10
https://joinup.ec.europa.eu/software/page/eupl
11
12
Unless required by applicable law or agreed to in writing, software
13
distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
14
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
Licence for the specific language governing permissions and limitations under
16
the Licence.
18
19
20
21
#ifndef IBROCBUILDER_H
22
#define IBROCBUILDER_H
23
24
#include <string>
25
#include <algorithm>
26
#include <fstream>
27
28
#include "IBVoxCollection.h"
29
30
#include "IBROC.h"
31
32
using namespace uLib;
33
34
35
class ROCBuilder
36
{
37
public:
38
float start; // actually not used
39
float stop; // actually not used
40
unsigned int samples;
41
42
ROCBuilder();
43
44
enum ROCRecipeEnum {
45
NoFilter = 0,
46
Gauss3,
47
Gauss5,
48
Avg,
49
Median,
50
Trim3u,
51
Trim3,
52
Trim5
53
};
54
55
template < class RecipeT >
56
IBROC BuildRoc(std::vector<IBVoxCollection> Owa, std::vector<IBVoxCollection> Awo);
57
58
IBROC BuildRoc(std::vector<IBVoxCollection> Owa, std::vector<IBVoxCollection> Awo, ROCRecipeEnum recipe = NoFilter);
59
60
float Ratio(IBROC roc, float y);
61
62
float FSI(IBROC roc, float y);
63
64
float AUC(IBROC &roc);
65
66
};
67
68
69
#endif // IBROCBUILDER_H
IBROCBuilder.h
Generated by
1.8.5