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

📄 lequations.h

📁 一个最小二乘法的拟合数据的小程序
💻 H
字号:
// LEquations.h: interface for the CLEquations class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LEQUATIONS_H__3EF96EA3_94F3_4247_9C76_B6A4DE7D2144__INCLUDED_)
#define AFX_LEQUATIONS_H__3EF96EA3_94F3_4247_9C76_B6A4DE7D2144__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Matrix.h"

class CLEquations : public CObject  
{
public:
	CLEquations();
	CLEquations(const CMatrix& mtxCoef,const CMatrix& mtxConst);//指定系数和常数的构造函数
	virtual ~CLEquations();

	BOOL Init(const CMatrix& mtxCoef,const CMatrix& mtxConst);//初始化


	//
	//获取属性
	//

	CMatrix GetCoefMatrix() const;//获取系数矩阵
	CMatrix GetConstMatrix() const;//获取常数矩阵]
	int GetNumEquations()const;//获取方程个数
	int GetNumUnkowns()const{	return m_mtxCoef.GetNumRows();	}//获取未知数个数

	//
	//线性方程组求解算法
	//
	
	BOOL GetRootsetGauss(CMatrix& mtxResult);//全选主元高斯消去法


protected:
	CMatrix m_mtxCoef;//系数矩阵
	CMatrix m_mtxConst;//常数矩阵

};

#endif // !defined(AFX_LEQUATIONS_H__3EF96EA3_94F3_4247_9C76_B6A4DE7D2144__INCLUDED_)

⌨️ 快捷键说明

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