M Seiser / Mbed 2 deprecated SWDEV_FunkGen_copy

Dependencies:   Serial_HL mbed

Fork of ProcVisDemo by michael hollegha

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TP1Ord.cpp Source File

TP1Ord.cpp

00001 #include "TP1Ord.h"
00002 
00003 TP1Ord :: TP1Ord()
00004 {
00005     //sinnvolle fg setzen
00006     SetAlpha(0.1);
00007     
00008 }
00009 void TP1Ord ::CalcOneStep(float aX)
00010 {
00011     y=aX*_alpha+y*_beta;
00012       
00013 }
00014 void TP1Ord :: SetAlpha(float aAlpha)
00015 {
00016     _alpha=aAlpha;
00017     _beta=(1.0-aAlpha);   
00018 }