MURE
Loading...
Searching...
No Matches
TemperatureMap.hxx
Go to the documentation of this file.
1/*
2 This file is part of MURE,
3 Copyright (C) 2007-2021 MURE developers.
4
5 MURE is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 MURE is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with MURE. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef _TEMPERATUREMAP_
20#define _TEMPERATUREMAP_
21
27#include <iostream>
28#include <sstream>
29#include <vector>
30#include <string>
31
32
33using namespace std;
34
36
47{
48 public:
55 TemperatureMap(double *T = nullptr, int NT = 0);
63 int AddUsedTemp(double T);
65 void SetDeltaTPrecision(double deltaT = 50)
66 {
67 fDeltaTPrecision = deltaT;
68 }
70 {
71 return fDeltaTPrecision;
72 }
73 double Score(double WantedT, double FoundT);
74 private:
75 void InitUsedTemperature();
76
78 double *fTemperature;
81
82};
83#endif
The good way of handling temperature from data base.
Definition TemperatureMap.hxx:47
int GetNumberOfUsedfTemperatures()
returns number of used temperatures
Definition TemperatureMap.cxx:127
~TemperatureMap()
destructor
Definition TemperatureMap.cxx:80
double fDeltaTPrecision
Precision to distinguish temperatures.
Definition TemperatureMap.hxx:80
double Score(double WantedT, double FoundT)
returns a score (max=1)
Definition TemperatureMap.cxx:135
int fNumberOfDataBaseTemp
Number of temperatures in the map.
Definition TemperatureMap.hxx:77
bool * fUsedTemperature
Array of used temperature corresponding to the map.
Definition TemperatureMap.hxx:79
int AddUsedTemp(double T)
Definition TemperatureMap.cxx:102
void SetDeltaTPrecision(double deltaT=50)
Definition TemperatureMap.hxx:65
double GetDeltaTPrecision()
Definition TemperatureMap.hxx:69
void InitUsedTemperature()
Init fUsedTemperature to false.
Definition TemperatureMap.cxx:91
double * fTemperature
Array of temperatures (the Map)
Definition TemperatureMap.hxx:78
the namespace of the Standard C++

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024