Exemplo n.º 1
0
 def getAverage(self, start=0, end=0):
     startIndex, endIndex = getIndices(self._pressureGradient[0, :], start,
                                       end)
     if hasattr(self, "_averagePressureGradient"):
         return self._averagePressureGradient
     else:
         return self._calcAverage(start, end)
Exemplo n.º 2
0
 def _calcAverage(self, start=0, end=0):
     startIndex, endIndex = getIndices(self._pressureGradient[0, :], start,
                                       end)
     self._averagePressureGradient = np.average(
         self._pressureGradient[1, startIndex:endIndex])
     if self._verbose == True:
         print("calulated average: ", self._averagePressureGradient)
Exemplo n.º 3
0
 def getFFT(self, start=0, end=0):
     startIndex, endIndex = getIndices(self._pressureGradient[0, :], start,
                                       end)
     if hasattr(self, "_FFT"):
         return self._FFT
     else:
         return self._calcFFT(start, end)
Exemplo n.º 4
0
 def getStdDev(self, start=0, end=0):
     startIndex, endIndex = getIndices(self._pressureGradient[0, :], start,
                                       end)
     if hasattr(self, "_stdDevPressureGradient"):
         return self._stdDevPressureGradient
     else:
         return self._calcStd(start, end)
Exemplo n.º 5
0
 def _calcFFT(self, start=0, end=0):
     startIndex, endIndex = getIndices(self._pressureGradient[0, :], start,
                                       end)
     self._FFT = [
         fftAnalysis(self._pressureGradient[0, startIndex:endIndex],
                     self._pressureGradient[1, startIndex:endIndex])
     ]
     return self._FFT
Exemplo n.º 6
0
 def _calcStdDev(self, start=0, end=0):
     startIndex, endIndex = getIndices(self._pressureGradient[0, :], start,
                                       end)
     self._stdDevPressureGradient = np.std(
         self._pressureGradient[1, startIndex:endIndex])
     return self._stdDevPressureGradient
Exemplo n.º 7
0
 def getTimes(self, start=0, end=0):
     startIndex, endIndex = getIndices(self._pressureGradient[0, :], start,
                                       end)
     return self._pressureGradient[0, startIndex:endIndex]