File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,20 @@ def main():
52
52
assert res .standardDeviation .shape == (1 , data .shape [1 ])
53
53
assert res .variation .shape == (1 , data .shape [1 ])
54
54
55
+ return res
56
+
55
57
56
58
if __name__ == "__main__" :
57
- main ()
59
+ res = main ()
60
+ # print results
61
+ print ("\n Minimum:\n " , res .minimum [0 :5 ])
62
+ print ("\n Maximum:\n " , res .maximum )
63
+ print ("\n Sum:\n " , res .sum )
64
+ print ("\n Sum of squares:\n " , res .sumSquares )
65
+ print ("\n Sum of squared difference from the means:\n " , res .sumSquaresCentered )
66
+ print ("\n Mean:\n " , res .mean )
67
+ print ("\n Second order raw moment:\n " , res .secondOrderRawMoment )
68
+ print ("\n Variance:\n " , res .variance )
69
+ print ("\n Standard deviation:\n " , res .standardDeviation )
70
+ print ("\n Variation:\n " , res .variation )
58
71
print ('All looks good!' )
You can’t perform that action at this time.
0 commit comments