|
MURE
|
The good way of handling temperature from data base. More...
#include <TemperatureMap.hxx>
Public Member Functions | |
| TemperatureMap (double *T=nullptr, int NT=0) | |
| TemperatureMap (const TemperatureMap &TM) | |
| copy constructor | |
| ~TemperatureMap () | |
| destructor | |
| int | AddUsedTemp (double T) |
| int | GetNumberOfUsedfTemperatures () |
| returns number of used temperatures | |
| void | SetDeltaTPrecision (double deltaT=50) |
| double | GetDeltaTPrecision () |
| double | Score (double WantedT, double FoundT) |
| returns a score (max=1) | |
Private Member Functions | |
| void | InitUsedTemperature () |
| Init fUsedTemperature to false. | |
Private Attributes | |
| int | fNumberOfDataBaseTemp |
| Number of temperatures in the map. | |
| double * | fTemperature |
| Array of temperatures (the Map) | |
| bool * | fUsedTemperature |
| Array of used temperature corresponding to the map. | |
| double | fDeltaTPrecision |
| Precision to distinguish temperatures. | |
The good way of handling temperature from data base.
User set its own temperature map (array) or uses the default on: T[0]=0K, T[1]=300k, T[2]=400k, ... T[18]=1900k; A precision parameter (default is 50K) is used to compare the a given temperature T to the map.
| TemperatureMap::TemperatureMap | ( | double * | T = nullptr, |
| int | NT = 0 |
||
| ) |
Normal constructor. if NT=0, default temperature map is built.
| T | : array of temperature (the map) in K |
| NT | : size of this array |
| TemperatureMap::TemperatureMap | ( | const TemperatureMap & | TM | ) |
copy constructor
| TemperatureMap::~TemperatureMap | ( | ) |
destructor
| int TemperatureMap::AddUsedTemp | ( | double | T | ) |
return the index of temperature T. Add T as a used temperature and return the index in the map of T (within the precision)
| T | : the added temperature [in K] |
|
inline |
< returns the temperature precision
| int TemperatureMap::GetNumberOfUsedfTemperatures | ( | ) |
returns number of used temperatures
|
private |
Init fUsedTemperature to false.
| double TemperatureMap::Score | ( | double | WantedT, |
| double | FoundT | ||
| ) |
returns a score (max=1)
|
inline |
< set the temperature precision in K
|
private |
Precision to distinguish temperatures.
|
private |
Number of temperatures in the map.
|
private |
Array of temperatures (the Map)
|
private |
Array of used temperature corresponding to the map.