// Vector.h: interface for the CVector class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_VECTOR_H__54994BF8_7D90_452F_8BA1_9F8A2C50AEBC__INCLUDED_) #define AFX_VECTOR_H__54994BF8_7D90_452F_8BA1_9F8A2C50AEBC__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include ".\baseobject.h" /* Filter(double w1, double w2, int mode); 1=window 2=hann 3=bartly 4=welch */ namespace NBase { class AFX_EXT_CLASS CVector : public CBaseObject { private: int m_pass; public: CVector(); CVector(int num); virtual ~CVector(); int Create(int n,double m_initial); int Create(int n); int Read(char* str); void Write(CString m_output); void operator =(CVector &t); CVector *FileRange(CString m_input); double operator [](int i); double Value(); void Sort(void); double Maxinum(); double Mininum(); int MaxinumPosition(); int MininumPosition(); void GetRange(void); void Derivative(void); void Extremum(void); int Filter(double w1, double w2, int mode); void* GetMaxAreaPoint(int nnn); void Differential(void); int num; // µÀÊý double *x; double range[2]; int Scan(CString& str); int Printf(FILE *fw,int pre); void Draw(CDC* pDC, double x0, double y0, double dx, double dy); void DrawSolid(CDC* pDC, double x0, double y0, double dx, double dy); void DrawSolidImage(void* pImage, double x0, double y0, double dx, double dy); void DrawImage(void* pImage, double x0, double y0, double dx, double dy); }; }; using namespace NBase; //CVector *GetVectorRange(CString m_input,int n); #endif // !defined(AFX_VECTOR_H__54994BF8_7D90_452F_8BA1_9F8A2C50AEBC__INCLUDED_) //void DrawVector(CString m_input,CDC *pDC, // int num,double *x,__int64 *offset, // int n, double x0, double y0, double dx, double dy, // int step,double times, int DataType, int IsPC, int IsSolid); //CImage *VectorToImage(CString m_input, // int num,double *x,__int64 *offset,int n, // int DataType,int IsPC); extern "C" AFX_EXT_API int* WINAPI AfxGetIsPositive();