WIP161212

thobaben_serialize
Harald Wolff 2016-12-12 11:34:44 +01:00
parent 4558ca16b0
commit 84d4cd221e
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package org.hwo;
public class Smoother {
private int lastValue;
private int summe;
private int wert;
private int tn;
@ -15,6 +16,7 @@ public class Smoother {
public int cycle(int value)
{
lastValue = value;
summe += value;
wert = summe / tn;
summe -= wert;
@ -46,6 +48,9 @@ public class Smoother {
this.tn = tn;
}
public int getLastValue(){
return lastValue;
}
}