利用多态性编程
利用多态性编程,创建一个square类,实现求三角形、正方形和圆形面积。方法 //抽象出一个共享的类,定义一个函数求面积的公共界面。再重新定义各面积的求面积 //函数,在主类中创建不同类的对象,并...
利用多态性编程,创建一个square类,实现求三角形、正方形和圆形面积。方法 //抽象出一个共享的类,定义一个函数求面积的公共界面。再重新定义各面积的求面积 //函数,在主类中创建不同类的对象,并...
直线拟合的几种算法,其中包括线性最小二乘,和两种不同目标函数的非线性最小二乘,用于比较这些方法的优劣,另外matlab中说的robust least squares方法没有找到,希望有朋友能给穿一下:...
This program demonstrates some function approximation capabilities of a Radial Basis Function Networ...
声明一个基类Shape(点), 在此基础上派生出Rectangle(长方形)和Circle(圆),这三个类都有GetArea()函数计算对象的面积,构造函数,析构函数等有关函数。再使用Rectangl...
平均因子分解法,适用于正定矩阵First, let s recall the definition of the Cholesky decomposition: Given a symmetric p...
his project was built and tested with WinAVR-20060125. Make sure the MCU target define in the Mak...
A fast customizable function for locating and measuring the peaks in noisy time-series signals. Adju...
this m file can Find a (near) optimal solution to the Traveling Salesman Problem (TSP) by setting up...
Chessboard Cover,On a chessboard,only one square is different, called specific.Use the Divide-and-Co...
This unit uses an array of bytes to represent a LARGE number. The number is binairy-stored in the ar...