-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.txt
86 lines (85 loc) · 2.17 KB
/
about.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
sp_type=['na','GINR','GIRZ','GINR+RZ','N','GIER']
__init__(self):
# èíèöèàëèçèðåò ñïåêòð
self.name=''
self.type=self.sp_type[0]
self.a=0
self.b=0
self.a_srd = 0
self.b_srd = 0
self.c_srd = 0
self.N=0
self.time = 0
self.history=[]
self.E=np.zeros(self.N,dtype=float)
self.sp=np.zeros(self.N,dtype=float)
self.peaks=np.array([])
pass
def set_E(self):
""" ôîðìèðóåò ìàññèâ ýíåðãèé E=i*a+b """
def open_spe(self, name):
""" ÷èòàåò ñïåêòð â ôîðìàòå SPE """
def open_cmp(self,name):
""" ÷èòàåò ñïåêòð â ôîðìàòå CMP """
def plot_sp(self):
""" ñòðîèò ñïåêòð"""
def ShiftComp(self, comp, shift):
""" Ôóíêöèÿ äåôîðìèðóåò ñïåêòð spe
comp - êîýôôèöèåíò ñæàòèÿ ðàñòÿæåíèÿ
shift - ñäâèã â êàíàëàõ
j=i*comp + shift
"""
def spread(self,a=None,b=None,c=None):
""" Ôóíêöèÿ Spreading ðàçìàçûâàåò ñïåêòð
sigma = a*i^2+b*i+c
"""
def save_spe(self, name=''):
""" ñîõðàíåíèå ñïåêòðà â îðìàòå SPE
name - èìÿ ñïåêòðà
"""
def save_json(self, name=''):
""" ñîõðàíÿåò ñïåêòð â ôîðìàòå JSON """
def open_json(self,name):
""" ÷èòàåò ñïåêòð â ôîðìàòå JSON """
def find_peaks(self,a=None,b=None,c=None):
"""
Function for search pikin spectrum by wavevlet
A package for gamma-ray spectrum analysis and routine neutron activation analysis
M E MEDHAT, A ABDEL-HAFIEZ, Z AWAAD and M A ALI
"""
def split(self,base,brd=None,tp=0):
"""
Function for split spetrum for sum of spectrums from base
base - tuple of spectrums
brd - tuple with boards like (left_board, right_board) in channal
tp = 0 - normal least-squares methods without same boundes
tp = 1 - non-negative least squares solver
https://docs.scipy.org/doc/scipy/reference/optimize.html
"""
def __mul__(self, k):
"""
multiplication spectr by number k
def __rmul__(self, k):
"""
multiplication spectr by number k
"""
def __truediv__(self, k,time=None):
"""
division spectr by number k
"""
def __radd__(self, k):
"""
sum spectr by number k
"""
def __add__(self, k):
"""
sum spectr by number k
"""
def __rsub__(self, k):
"""
sum spectr by number k
"""
def __sub__(self, k):
"""
sum spectr by number k
"""