prepared application of stealth mode
This commit is contained in:
parent
195352a7ca
commit
2dd36379a8
@ -62,7 +62,7 @@ class CharacteristicFunction(object):
|
|||||||
self.calcCF(self.getDataArray())
|
self.calcCF(self.getDataArray())
|
||||||
self.arpara = np.array([])
|
self.arpara = np.array([])
|
||||||
self.xpred = np.array([])
|
self.xpred = np.array([])
|
||||||
self.stealthMode = stealthMode
|
self._stealthMode = stealthMode
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return '''\n\t{name} object:\n
|
return '''\n\t{name} object:\n
|
||||||
@ -136,6 +136,9 @@ class CharacteristicFunction(object):
|
|||||||
def getXCF(self):
|
def getXCF(self):
|
||||||
return self.xcf
|
return self.xcf
|
||||||
|
|
||||||
|
def _getStealthMode(self):
|
||||||
|
return self._stealthMode()
|
||||||
|
|
||||||
def getDataArray(self, cut=None):
|
def getDataArray(self, cut=None):
|
||||||
'''
|
'''
|
||||||
If cut times are given, time series is cut from cut[0] (start time)
|
If cut times are given, time series is cut from cut[0] (start time)
|
||||||
@ -220,8 +223,8 @@ class AICcf(CharacteristicFunction):
|
|||||||
|
|
||||||
def calcCF(self, data):
|
def calcCF(self, data):
|
||||||
|
|
||||||
if self.stealthMode is False:
|
#if self._getStealthMode() is False:
|
||||||
print 'Calculating AIC ...'
|
# print 'Calculating AIC ...'
|
||||||
x = self.getDataArray()
|
x = self.getDataArray()
|
||||||
xnp = x[0].data
|
xnp = x[0].data
|
||||||
nn = np.isnan(xnp)
|
nn = np.isnan(xnp)
|
||||||
@ -259,13 +262,13 @@ class HOScf(CharacteristicFunction):
|
|||||||
if len(nn) > 1:
|
if len(nn) > 1:
|
||||||
xnp[nn] = 0
|
xnp[nn] = 0
|
||||||
if self.getOrder() == 3: # this is skewness
|
if self.getOrder() == 3: # this is skewness
|
||||||
if self.stealthMode is False:
|
#if self._getStealthMode() is False:
|
||||||
print 'Calculating skewness ...'
|
# print 'Calculating skewness ...'
|
||||||
y = np.power(xnp, 3)
|
y = np.power(xnp, 3)
|
||||||
y1 = np.power(xnp, 2)
|
y1 = np.power(xnp, 2)
|
||||||
elif self.getOrder() == 4: # this is kurtosis
|
elif self.getOrder() == 4: # this is kurtosis
|
||||||
if self.stealthMode is False:
|
#if self._getStealthMode() is False:
|
||||||
print 'Calculating kurtosis ...'
|
# print 'Calculating kurtosis ...'
|
||||||
y = np.power(xnp, 4)
|
y = np.power(xnp, 4)
|
||||||
y1 = np.power(xnp, 2)
|
y1 = np.power(xnp, 2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user