RTND/py/myplot.py
def count_changes(vals):
    """
        input a list of values and check the trend 
    """
    counter = 0
    num = len(vals)
    for i in range(1, num-1):
        if (vals[i]-vals[i-1])*(vals[i]-vals[i+1])<0:
            counter =  counter + 1
    return counter

        input a list of values and check the trend 
    
input a list of values and check the trend
input a list of values and check the trend
def count_changes(vals):
    counter = 0
    num = len(vals)
    for i in range(1, num-1):
        if (vals[i]-vals[i-1])*(vals[i]-vals[i+1])<0:
            counter =  counter + 1
    return counter
def count_changes ( vals ) : counter = 0 num = len ( vals ) for i in range ( 1 , num - 1 ) : if ( vals [ i ] - vals [ i - 1 ] ) * ( vals [ i ] - vals [ i + 1 ] ) < 0 : counter = counter + 1 return counter
input a list of values and check the trend
input a list of values and check the trend
"""
        input a list of values and check the trend 
    """
vals