Blame view

src/ExternLib/mexvex_els_calculate/mexvex_els_calculate.cc 412 Bytes
022bfd5b   Benjamin Renard   Fix mexvex_els_ca...
1
2
3
4
5
6
7
8
9
10
#include "mexvex_els_calculate.hh"

std::vector<float> mexvex_els_calculate(const std::vector<short>& ELS,const short& TimeCompres, const short& EnergyCompres, unsigned int Angle)
{
	std::vector<float> lElsCalculate;
	for (unsigned int iEn = 0; iEn < 128; iEn++) {// 128 Energy Steps
		lElsCalculate.push_back(((float)ELS[iEn + Angle *128])/(float)TimeCompres/(float)EnergyCompres);
	}
	return lElsCalculate;
}