@@ -68,8 +68,10 @@ def create_main_frame(self):
68
68
69
69
70
70
self .transpose_button = QPushButton ('&Transpose' )
71
- self .center_Geometric_button = QPushButton ('&Divide by Geometric Mean' )
72
- self .center_Arithmetic_button = QPushButton ('&Subtract Arithmetic Average' )
71
+ self .divide_Geometric_button = QPushButton ('&Divide by Geometric Mean' )
72
+ self .subtract_Geometric_button = QPushButton ('&Subtract Geometric Mean' )
73
+ self .divide_Arithmetic_button = QPushButton ('&Divide By Arithmetic Average' )
74
+ self .subtract_Arithmetic_button = QPushButton ('&Subtract Arithmetic Average' )
73
75
74
76
self .min_max_button = QPushButton ('&Min-Max Standard' )
75
77
self .std_button = QPushButton ('&Standard' )
@@ -97,8 +99,12 @@ def create_main_frame(self):
97
99
self .reset_button .clicked .connect (self .resetResult )
98
100
99
101
self .transpose_button .clicked .connect (self .transpose )
100
- self .center_Geometric_button .clicked .connect (self .center_Geometric )
101
- self .center_Arithmetic_button .clicked .connect (self .center_Arithmetic )
102
+ self .divide_Geometric_button .clicked .connect (self .divide_Geometric )
103
+ self .subtract_Geometric_button .clicked .connect (self .subtract_Geometric )
104
+ self .divide_Arithmetic_button .clicked .connect (self .divide_Arithmetic )
105
+ self .subtract_Arithmetic_button .clicked .connect (self .subtract_Arithmetic )
106
+
107
+
102
108
self .min_max_button .clicked .connect (self .min_max )
103
109
self .std_button .clicked .connect (self .std )
104
110
@@ -134,8 +140,10 @@ def create_main_frame(self):
134
140
self .save_button ,]:
135
141
self .hbox0 .addWidget (w )
136
142
137
- for w in [self .center_Arithmetic_button ,
138
- self .center_Geometric_button ,
143
+ for w in [self .subtract_Arithmetic_button ,
144
+ self .divide_Arithmetic_button ,
145
+ self .subtract_Geometric_button ,
146
+ self .divide_Geometric_button ,
139
147
self .min_max_button ,
140
148
self .std_button ]:
141
149
self .hbox1 .addWidget (w )
@@ -271,7 +279,7 @@ def remove_column_with_0(self):
271
279
self .tableView .setModel (self .tableresult )
272
280
self .show ()
273
281
274
- def center_Geometric (self ):
282
+ def divide_Geometric (self ):
275
283
276
284
gmean = st .gmean (self .result .T )
277
285
tmpresult = self .result .T / gmean
@@ -281,14 +289,35 @@ def center_Geometric(self):
281
289
self .show ()
282
290
283
291
284
- def center_Arithmetic (self ):
292
+ def subtract_Geometric (self ):
293
+
294
+ gmean = st .gmean (self .result .T )
295
+ tmpresult = self .result .T - gmean
296
+ self .result = tmpresult .T
297
+ self .tableresult = PandasModel (self .result )
298
+ self .tableView .setModel (self .tableresult )
299
+ self .show ()
300
+
301
+
302
+
303
+ def subtract_Arithmetic (self ):
285
304
mean = self .result .T .mean (numeric_only = float )
286
305
tmpresult = self .result .T - mean
287
306
self .result = tmpresult .T
288
307
self .tableresult = PandasModel (self .result )
289
308
self .tableView .setModel (self .tableresult )
290
309
self .show ()
291
310
311
+
312
+
313
+ def divide_Arithmetic (self ):
314
+ mean = self .result .T .mean (numeric_only = float )
315
+ tmpresult = self .result .T / mean
316
+ self .result = tmpresult .T
317
+ self .tableresult = PandasModel (self .result )
318
+ self .tableView .setModel (self .tableresult )
319
+ self .show ()
320
+
292
321
def min_max (self ):
293
322
# mean=self.result.T.mean(numeric_only= float)
294
323
# std=self.result.T.std(numeric_only= float)
0 commit comments