コード例 #1
0
def getStandardDeviation(list, mean):
    countData = len(list)
    list = dt.getPower(dt.getSubstractList(list,mean),2)
    list = dt.sumArray(list)/countData
    list = dt.getSquareRoot(list)
    res = [list[0],list[1],list[2]]
    return res
コード例 #2
0
def getMean(list):
    sumValue = dt.sumArray(list)
    sumValue = sumValue/len(list)
    sumValue = sumValue[0],sumValue[1],sumValue[2]
    return sumValue