#NEWLINE# def initial_trend_values_test( self ) : #NEWLINE# #INDENT# hwm = HoltWintersMethod ( seasonLength = 4 ) #NEWLINE# data = [ [ 0 , 362.0 ] , [ 1 , 385.0 ] , [ 2 , 432.0 ] , [ 3 , 341.0 ] , [ 4 , 382.0 ] , [ 5 , 425.0 ] ] #NEWLINE# tsSrc = TimeSeries . from_twodim_list ( trend ) #NEWLINE# trend = hwm . initialTrendSmoothingFactors ( tsSrc ) #NEWLINE# assert ( trend == 7.5 ) , ( 'Initial Trend should be 7.5 but is %f' % trend )