#pragma once #include #include "OTSSTDLib.h" using namespace std; namespace OTSClassifyEngine { class __declspec(dllexport) CClassifyOnCurveCompEng { public: CClassifyOnCurveCompEng(); // constructor virtual ~CClassifyOnCurveCompEng(); // detractor static int GetCompareMineral(int iStartChannel, const vector& vecIgnoreElementNames, CPosXrayPtr posxray, CSTDLibPtr& oretype, double& dValue); static CStandardItemPtr GetCompareSTD(int iStartChannel, const vector& vecIgnoreElementNames, CPosXrayPtr posxray, CSTDLibPtr& oretype, double& dValue); protected: static double GetCosValue(int iStartChannel, const vector& vecIgnoreElementNames, CPosXrayPtr posxray, DWORD* pXrayData1, int iDataLen1); static double GetStdEvp(int iStartChannel, const vector& vecIgnoreChannel, CPosXrayPtr posxray, DWORD* pXrayData1, int iDataLen1); static void GetElementChannel(const vector& vecstrElementNames, vector& veciChannel); static void GetElementChannel(CString strElementName, vector& veciChannel); static void AddChannel(double dEnergy, vector& veciChannel); }; }