calculating Moving averages jagathkumarks/jagathkumarks@gmail.com
This commit is contained in:
parent
656d6ee54f
commit
a4da7fe15b
@ -4,7 +4,7 @@ import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class ExponentialMovingAverageTest {
|
||||
public class ExponentialMovingAverageUnitTest {
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void when_alpha_is_invalid_should_throw_exception() {
|
||||
new ExponentialMovingAverage(0); // Alpha outside valid range
|
@ -4,7 +4,7 @@ import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class MovingAverageByCircularBufferTest {
|
||||
public class MovingAverageByCircularBufferUnitTest {
|
||||
|
||||
@Test
|
||||
public void when_initial_average_is_calculated_it_should_be_zero() {
|
@ -4,7 +4,7 @@ import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class MovingAverageWithApacheCommonsMathTest {
|
||||
public class MovingAverageWithApacheCommonsMathUnitTest {
|
||||
|
||||
@Test
|
||||
public void when_initial_average_is_calculated_it_should_be_NAN() {
|
Loading…
x
Reference in New Issue
Block a user