diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2015-04-30 14:23:14 +0200 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2015-04-30 14:23:14 +0200 |
commit | 88c18727290d81ce6f6ff66862cea6da241c7c34 (patch) | |
tree | 47d1922a621becc87a4573fca9feb4acef821432 /pyspike/PieceWiseLinFunc.py | |
parent | 1b9f4ec0aee1281464cfcab02bb4c7c302dbbb00 (diff) | |
parent | 26d4dd11f80b1c0b4ab19e7cb74c77b61eaad90c (diff) |
Merge pull request #4 from mariomulansky/develop0.2.0
merge develop
Diffstat (limited to 'pyspike/PieceWiseLinFunc.py')
-rw-r--r-- | pyspike/PieceWiseLinFunc.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/pyspike/PieceWiseLinFunc.py b/pyspike/PieceWiseLinFunc.py index bc0aa2a..f2442be 100644 --- a/pyspike/PieceWiseLinFunc.py +++ b/pyspike/PieceWiseLinFunc.py @@ -1,11 +1,7 @@ -""" -Class representing piece-wise linear functions. +# Class representing piece-wise linear functions. +# Copyright 2014-2015, Mario Mulansky <mario.mulansky@gmx.net> +# Distributed under the BSD License -Copyright 2014-2015, Mario Mulansky <mario.mulansky@gmx.net> - -Distributed under the BSD License - -""" from __future__ import print_function import numpy as np @@ -123,7 +119,7 @@ class PieceWiseLinFunc: def avrg(self, interval=None): """ Computes the average of the piece-wise linear function: - :math:`a = 1/T int_0^T f(x) dx` where T is the length of the interval. + :math:`a = 1/T \int_0^T f(x) dx` where T is the interval length. :param interval: averaging interval given as a pair of floats, a sequence of pairs for averaging multiple intervals, or |