全球旧事资料 分类
215data120datai15datai16data2data3iiii64
(2)、简单比较法(极值定峰法、IF函数找峰法):a、峰的定义:满足dataimdataikdataidataim,然后在dataim至dataim中找最大值道。b、常用的:5点、7点极大值法。c、一般,用RN0Nb≥Rc确定峰是否有意义。N0为净峰幅度与基底之和,Nb为基底计数,Rc为设定值。d、k:找峰阈值,根据高斯统计概率分布,一般k取值:115。
datailm≥datailkdatail
峰的左右边界道iL和iR的确定:
datairm≥datairkdatair
(3)、线性本底法:计算总面积:S
R
∑data
iL
i
计算本底面积:BdataLdataR计算净峰面积:ASB3、主程序的流程及各模块之间的关系。
RL12
f开始
主程序流程:
BGI初始化
谱文件是否打开?Y
调用显示未处理前谱线函数及处理谱函数
N
等待
Switch(按键):各按键作用函数调用
E
d
f各模块之间的关系:
主程序开始
文件读写函数
第一次画谱线函数origi
alLi
e
标注峰drawPeak
画坐标drawCoordi
ate
寻峰光标当前位置寻峰eleme
tPeakAreacursorPeakArea能量刻度e
ergyToCha
el
计算峰面积calculatePeakArea计算峰面积calculatePeakArea
找峰边界fi
dPeakBou
dary
指定道值找峰fi
dPeakByCha
el
Key?
w(s)
缩放谱线
a(d)
移动光标
z(x)
快速移动光标
e
载入元素文件
c
载入标定文件

计算峰面
Key?
m
谱光滑
p
光标位置寻峰
r
还原谱线到刚刚载入的状态
f
将谱线数据以ASCII码文件存储
09
点线切换
q
退出程序
设定键被按下
有键按下?
未设定键被按下
等待
f五、详细设计1、函数及变量定义:defi
eMAX_ELEMENT_NUM20defi
eScree
Height480defi
eScree
Width640defi
eLi
eHeight370defi
eLi
eWidth500defi
eLi
eLeftXScree
WidthLi
eWidth2defi
eLi
eRightXLi
eLeftXLi
eWidthdefi
eLi
eTopY40defi
eLi
eBottomYLi
eTopYLi
eHeightFILEdataFilei
tgdrivergmodeu
sig
edlo
gdataTable1024maxVali
tDisPos500实际显示的数据i
tOriPos500未处理前的数据i
tcursorXfloatzoomu
sig
edi
tcursorCha
elu
sig
edchardispLi
eu
sig
edchare
ergyMarkedeleme
tLoadedSpectrumLoadedpeakSeekedcursorPeakseekedi
tsmoothLevel1peakSeekLevel9floatab能量刻度方程chareleme
tMAX_ELEMENT_NUM2u
sig
edchar
umOfEleme
tcursorEleme
tfloateleme
tE
ergyMAX_ELEMENT_NUMu
sig
edi
tpeakBou
dMAX_ELEMENT_NUM2u
sig
edlo
geleme
tAreaMAX_ELEMENT_NUMeleme
tNetAreaMAX_ELEMENT_NUMu
sig
edi
tcursorPeakBou
dLeftcursorPeakBou
dRightu
sig
edlo
gcursorPeakAreacursorPeakNetArea2、程序中用到的重要数据(1)cursorE
ergyabcursorCr
好听全球资料 返回顶部