def mean(self, interpolation=None):
        if interpolation is None:
            return (self[:-1]*self.sampling_intervals).sum()/self.duration
        else:
            raise NotImplementedError
Calculates the mean, optionally using interpolation between sampling
dataset/ETHPy150Open NeuralEnsemble/python-neo/neo/core/irregularlysampledsignal.py/IrregularlySampledSignal.mean