You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.5 KiB
C++

// 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_
#ifndef AFX_EXT_CLASS
#define AFX_EXT_CLASS Q_DECL_IMPORT
#endif
#if (_MSC_VER > 1000)||(!(defined(_MSC_VER)))
#pragma once
#endif //
#include <atlimage.h>
#include "BaseObject.h"
/* Filter(double w1, double w2, int mode);
1=window
2=hann
3=bartly
4=welch
*/
namespace GBase
{
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 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);
};
};
using namespace GBase;
//CVector *GetVectorRange(CString m_input,int n);
#endif // !defined(AFX_VECTOR_H__54994BF8_7D90_452F_8BA1_9F8A2C50AEBC__INCLUDED_)