File tree 2 files changed +3
-3
lines changed
EE238_Decoder/src/MarkovState
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public enum Configuration {
28
28
private final int _lowerThreshold = (int ) (this ._maxBufferSize * .2 );
29
29
30
30
// The rate (In Packets/Second) to send
31
- private final int _packetRate = 300 ;
31
+ private final int _packetRate = 400 ;
32
32
33
33
// Conversion from Seconds to Milliseconds
34
34
private final int SEC_TO_MILLISEC = 1000 ;
@@ -63,7 +63,7 @@ public enum Configuration {
63
63
// The sleep rate to meter how many packets the encoder sends per
64
64
// millisecond
65
65
// and nanosecond
66
- private SleepTime _encoderSleepTime = new SleepTime (this ._packetRate );
66
+ private SleepTime _encoderSleepTime = new SleepTime (this ._packetRate * 1.00000000000000011 );
67
67
68
68
// The Attenuation factor to increase/decrease the output rate
69
69
private final double _attenuationFactor = 0.02 ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class MarkovStateLow extends AbstractMarkovState {
16
16
@ Override
17
17
public void updateSleepTime () {
18
18
// Same as Rate - (Rate * Attenuation Factor)
19
- double slowedRate = (1 - Configuration .INSTANCE .getAttenuationFactor ())
19
+ double slowedRate = (1.0 - Configuration .INSTANCE .getAttenuationFactor ())
20
20
* Configuration .INSTANCE .getPacketRate ();
21
21
22
22
super .updateSleepTime (slowedRate );
You can’t perform that action at this time.
0 commit comments