mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-04 05:30:32 -05:00 
			
		
		
		
	Moving average: fixed initialization
This commit is contained in:
		
							parent
							
								
									8d565f8187
								
							
						
					
					
						commit
						33e171bd9b
					
				@ -8,7 +8,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
template<typename Type> class MovingAverage {
 | 
					template<typename Type> class MovingAverage {
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
	MovingAverage(int historySize, Type initial)
 | 
						MovingAverage(int historySize, Type initial) : m_index(0)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
	    resize(historySize, initial);
 | 
						    resize(historySize, initial);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user