OTSClassifyOnCurveCompEng.h 1.1 KB

12345678910111213141516171819202122
  1. #pragma once
  2. #include <vector>
  3. #include "OTSSTDLib.h"
  4. using namespace std;
  5. namespace OTSClassifyEngine
  6. {
  7. class __declspec(dllexport) CClassifyOnCurveCompEng
  8. {
  9. public:
  10. CClassifyOnCurveCompEng(); // constructor
  11. virtual ~CClassifyOnCurveCompEng(); // detractor
  12. static int GetCompareMineral(int iStartChannel, const vector<CString>& vecIgnoreElementNames, CPosXrayPtr posxray, CSTDLibPtr& oretype, double& dValue);
  13. static CStandardItemPtr GetCompareSTD(int iStartChannel, const vector<CString>& vecIgnoreElementNames, CPosXrayPtr posxray, CSTDLibPtr& oretype, double& dValue);
  14. protected:
  15. static double GetCosValue(int iStartChannel, const vector<CString>& vecIgnoreElementNames, CPosXrayPtr posxray, DWORD* pXrayData1, int iDataLen1);
  16. static double GetStdEvp(int iStartChannel, const vector<int>& vecIgnoreChannel, CPosXrayPtr posxray, DWORD* pXrayData1, int iDataLen1);
  17. static void GetElementChannel(const vector<CString>& vecstrElementNames, vector<int>& veciChannel);
  18. static void GetElementChannel(CString strElementName, vector<int>& veciChannel);
  19. static void AddChannel(double dEnergy, vector<int>& veciChannel);
  20. };
  21. }