1 #ifndef CALIBREUR_F_CUDA_H_
2 #define CALIBREUR_F_CUDA_H_
4 #include "both_define.h"
5 #include "IntervalF_GPU.h"
14 /*--------------------------------------*\
16 \*-------------------------------------*/
19 CalibreurF(const IntervalF
& input
, const IntervalF
& output
)
21 this->pente
= (output
.b
- output
.a
) / (input
.b
- input
.a
);
22 this->translation
= output
.a
- pente
* input
.a
;
25 // constructeur copie automatique car pas pointeur dans
30 // __device__ __host__
31 // CalibreurF(const CalibreurF& source)
37 /*--------------------------------------*\
39 \*-------------------------------------*/
44 void calibrer(float& value
) const
46 value
= value
* pente
+ translation
;
50 float getPente() const
56 float getTranslation() const
58 return this->translation
;
61 /*--------------------------------------*\
63 \*-------------------------------------*/
76 /*----------------------------------------------------------------------*\
78 \*---------------------------------------------------------------------*/