<gh_stars>0
"""Stream.py: 

"""
    
__author__           = "<NAME>"
__copyright__        = "Copyright 2017-, <NAME>"
__version__          = "1.0.0"
__maintainer__       = "<NAME>"
__email__            = "<EMAIL>"
__status__           = "Development"


class Stream():

    def __init__(self):
        self.x = 0
        self.mean = 0.0
        self.std = 0.0
        self.N = 0

    def add(self, val):
        self.x = val
        self.N += 1
        self.compute( )

    def compute( self ):
        self.mean = (self.mean*(self.N-1)+self.x)/self.N




"""Stream.py: 

"""
    
__author__           = "<NAME>"
__copyright__        = "Copyright 2017-, <NAME>"
__version__          = "1.0.0"
__maintainer__       = "<NAME>"
__email__            = "<EMAIL>"
__status__           = "Development"


class Stream():

    def __init__(self):
        self.x = 0
        self.mean = 0.0
        self.std = 0.0
        self.N = 0

    def add(self, val):
        self.x = val
        self.N += 1
        self.compute( )

    def compute( self ):
        self.mean = (self.mean*(self.N-1)+self.x)/self.N
Stream.py: