Beispiel #1
0
def findsync(dataMatrix):

    datamatrix = Init.getData(dataMatrix,sensors=["STE"],datas=[ "acc"])
    signal= dataMatrix[:,2]
    maxAbsValue, maxAbsFreq = FourierTransformation.maxAbsFreq(signal)
    Filtered = FeatureKonstruktion.filter(datamatrix,[2,3,4],maxAbsFreq)
    plt.plot(Filtered[:,2:])
    plt.show()
Beispiel #2
0
def getminimas(dataMatrix, Sensor=[290]):
    signal = dataMatrix[:,Sensor[0]]
    maxAbsValue, maxAbsFreq = FourierTransformation.maxAbsFreq(signal[0:13000])
    Filtered = FeatureKonstruktion.filter(dataMatrix,Sensor,maxAbsFreq)
    print maxAbsFreq,maxAbsValue
    plt.plot(signal)
    plt.show()

    return argrelmin(Filtered[:,Sensor],order=25)
Beispiel #3
0
def getmaximas(dataMatrix, Sensor=[290]):
    signal = dataMatrix[:,Sensor[0]]
    maxAbsValue, maxAbsFreq = FourierTransformation.maxAbsFreq(signal[0:13000])
    Filtered = FeatureKonstruktion.filter(dataMatrix,Sensor,maxAbsFreq)
    plt.plot(Filtered[:,Sensor],label="z-Acceleration Foot")
    plt.title("Filtered acceleration")
    plt.legend()
    plt.xlabel("Samples")
    plt.ylabel("m/s^2")
    plt.show()
    return argrelmax(Filtered[:,Sensor],order=25)