📄 linklist2.cpp
字号:
#include "linklist.h"
#include "linklist2.h"
#include<math.h>
void CLinerRegPa::calculateLRG(HNode head1,HNode head2)
{
Cllcompute cc1,cc2,cc3;
float avex,avey;
float totalxx,totalxy;
int i;
cc1.Listcompute(head1);
avex=cc1.getAve();
i=cc1.getI();
totalxx=cc1.getTotalxx();
cc2.Listcompute(head2);
avey=cc2.getAve();
cc3.Listcom(head1,head2);
totalxy=cc3.getTotalxy();
b=(totalxy-i*avex*avey)/(totalxx-i*avex*avex);
a=avey-b*avex;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -