Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
Exp_Smooth Class Reference

#include <smoothing_algorithm.h>

Inheritance diagram for Exp_Smooth:
Collaboration diagram for Exp_Smooth:

Public Member Functions

 Exp_Smooth ()
 
 Exp_Smooth (float alpha)
 
 Exp_Smooth (Exp_Smooth &&)=default
 
 Exp_Smooth (const Exp_Smooth &)=default
 
Exp_Smoothoperator= (Exp_Smooth &&)=default
 
Exp_Smoothoperator= (const Exp_Smooth &)=default
 
 ~Exp_Smooth ()
 
void set_Alpha (float alpha)
 
float smooth (const float &input)
 
void clear ()
 
- Public Member Functions inherited from Smoothing_Algorithm
virtual ~Smoothing_Algorithm ()
 

Private Attributes

float last_output_
 
float alpha_
 
bool is_first_
 

Constructor & Destructor Documentation

◆ Exp_Smooth() [1/4]

Exp_Smooth::Exp_Smooth ( )

◆ Exp_Smooth() [2/4]

Exp_Smooth::Exp_Smooth ( float  alpha)

◆ Exp_Smooth() [3/4]

Exp_Smooth::Exp_Smooth ( Exp_Smooth &&  )
default

◆ Exp_Smooth() [4/4]

Exp_Smooth::Exp_Smooth ( const Exp_Smooth )
default

◆ ~Exp_Smooth()

Exp_Smooth::~Exp_Smooth ( )
inline

Member Function Documentation

◆ clear()

void Exp_Smooth::clear ( )

◆ operator=() [1/2]

Exp_Smooth& Exp_Smooth::operator= ( Exp_Smooth &&  )
default

◆ operator=() [2/2]

Exp_Smooth& Exp_Smooth::operator= ( const Exp_Smooth )
default

◆ set_Alpha()

void Exp_Smooth::set_Alpha ( float  alpha)
inline

◆ smooth()

float Exp_Smooth::smooth ( const float &  input)
virtual

Implements Smoothing_Algorithm.

Here is the caller graph for this function:

Member Data Documentation

◆ alpha_

float Exp_Smooth::alpha_
private

◆ is_first_

bool Exp_Smooth::is_first_
private

◆ last_output_

float Exp_Smooth::last_output_
private

The documentation for this class was generated from the following files: