-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e251e4
commit 0ad253b
Showing
2 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/test/java/neqsim/statistics/dataanalysis/datasmoothing/DataSmootherTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package neqsim.statistics.dataanalysis.datasmoothing; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import Jama.Matrix; | ||
|
||
public class DataSmootherTest { | ||
|
||
@Test | ||
void testgetSmoothedNumbers(String[] args) { | ||
double[] numbers = {10, 11, 12, 13, 14, 15, 15.5, 15, 19, 14, 14, 13, 12, 12, 11, 10, 9, 8}; | ||
DataSmoother test = new DataSmoother(numbers, 3, 3, 0, 4); | ||
Matrix data = new Matrix(test.getSmoothedNumbers(), 1); | ||
data.print(10, 2); | ||
test.runSmoothing(); | ||
data = new Matrix(test.getSmoothedNumbers(), 1); | ||
data.print(10, 2); | ||
} | ||
} |