Question: Alpha Filtering Use the following code to answer these questions: ( Note the initial value of z ) float alphaFilter ( float y ) {

Alpha Filtering
Use the following code to answer these questions:
(Note the initial value of z)
float alphaFilter(float y){
float alpha =0.75;
static float z =10;
z = alpha*z +(1-alpha)*y;
return z;
}
float measurementGate(float y){
static float z =10;
if(abs(z-y)<8){
z = alphaFilter(y);
}
return z;
}
1418.
Given the samples:
y1=1,y2=5,y3=25,y4=15,y5=18
What will the measurement gate output after each sequential input?
y1
y2
y3
y4
y5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!