mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
Corr.reverse added
This commit is contained in:
parent
2a4070e6a1
commit
063b8b2404
1 changed files with 3 additions and 0 deletions
|
@ -203,6 +203,9 @@ class Corr:
|
|||
def roll(self, dt):
|
||||
return Corr(list(np.roll(np.array(self.content, dtype=object), dt)))
|
||||
|
||||
def reverse(self):
|
||||
return Corr(self.content[::-1])
|
||||
|
||||
def deriv(self, symmetric=True): # Defaults to symmetric derivative
|
||||
if not symmetric:
|
||||
newcontent = []
|
||||
|
|
Loading…
Add table
Reference in a new issue