ControlChart/control_chart.py
def control_chart(stream, options):
    """
    Run the control chart tests.  For each new value yielded by the stream,
    pass it to each of the tests for checking.

    :param stream: generator that yields the next value to test
    :type  stream: generator
    :param options: values for defining the tests (mean, standard deviation)
    :type  options: argparse.Namespace
    """
    tests = []
    tests.append(test_3_sigma(options))
    tests.append(test_2_sigma(options))
    tests.append(test_1_sigma(options))
    tests.append(test_cl_shift(options))

    for x in stream:
        for test in tests:
            test(x)
    return 0

    Run the control chart tests.  For each new value yielded by the stream,
    pass it to each of the tests for checking.

    :param stream: generator that yields the next value to test
    :type  stream: generator
    :param options: values for defining the tests (mean, standard deviation)
    :type  options: argparse.Namespace
    
Run the control chart tests.  For each new value yielded by the stream,
pass it to each of the tests for checking.
Run the control chart tests . For each new value yielded by the stream pass it to each of the tests for checking .
def control_chart(stream, options):
    tests = []
    tests.append(test_3_sigma(options))
    tests.append(test_2_sigma(options))
    tests.append(test_1_sigma(options))
    tests.append(test_cl_shift(options))
    for x in stream:
        for test in tests:
            test(x)
    return 0
def control_chart ( stream , options ) : tests = [ ] tests . append ( test_3_sigma ( options ) ) tests . append ( test_2_sigma ( options ) ) tests . append ( test_1_sigma ( options ) ) tests . append ( test_cl_shift ( options ) ) for x in stream : for test in tests : test ( x ) return 0
Run the control chart tests.
Run the control chart tests .
"""
    Run the control chart tests.  For each new value yielded by the stream,
    pass it to each of the tests for checking.

    :param stream: generator that yields the next value to test
    :type  stream: generator
    :param options: values for defining the tests (mean, standard deviation)
    :type  options: argparse.Namespace
    """
stream
generator that yields the next value to test
generator that yields the next value to test
options
values for defining the tests (mean, standard deviation)
values for defining the tests ( mean standard deviation )