⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 polyfitdemo.h

📁 多项式曲线拟合 任意介数 Purpose - Least-squares curve fit of arbitrary order working in C++ Builder 2007 as
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef polyfitdemoH
#define polyfitdemoH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Dialogs.hpp>
#include "CSPIN.h"
#include <ComCtrls.hpp>
#include "cspin.h"

//---------------------------------------------------------------------------
class TForm1;
class CData
{
 private:
  TForm1 *Owner;
  double xm;
  double x0;
  double y0;
  double ym;
  void __fastcall RemoveSignificant(vector<long double> &x, vector<long double> &y, double rms);
  double __fastcall RootMeanSquare(vector<long double> &x, vector<long double> &y);
 public:
  vector<long double>X;
  vector<long double>Y;
  vector<long double>A;
  unsigned int N;

  bool __fastcall ReadData();

  double __fastcall F(double x);

  __fastcall CData(TForm1 *AOwner) :Owner(AOwner) {}
};
//---------------------------------------------------------------------------

class TForm1 : public TForm
{
__published:	// IDE-managed Components

 TPanel *Panel1;
 TButton *btnRead;
 TOpenDialog *OpenDialog1;
 TButton *btnCalc;
 TListBox *ListBox1;
 TCSpinEdit *CSpinEdit1;

 void __fastcall btnReadClick(TObject *Sender);
 void __fastcall btnCalcClick(TObject *Sender);



private:	// User declarations

 CData *Data;


public:		// User declarations

  __fastcall TForm1(TComponent* Owner);

  __fastcall ~TForm1();
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -