This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
import math | |
class valueConverter: | |
@staticmethod | |
def std_deviation(Values, format=True): | |
result = numpy.std(Values) | |
average = numpy.mean(Values) | |
for value in Values: | |
if not math.isclose(value, average, abs_tol=0.1): # individual numbers should differ by less than 0.1 from any other number | |
if format: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This is a bad ini file | |
YES="wrong" | |
NO="wrong" | |
NULL="wrong" | |
FALSE="wrong" | |
GOOD="right" | |
ON="wrong" | |
OFF="wrong" | |
NONE="wrong" |