JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
GaussKernelTest.java
Go to the documentation of this file.
1 package kermor.test;
2 
3 import jarmos.Util;
7 
8 import org.junit.Test;
9 
14 public class GaussKernelTest {
15 
16  @Test
17  public void testGaussKernel() {
18  Plotter p = new Plotter("GaussTest");
19 
20  IKernel g = new GaussKernel(2.2);
21  double[] x = Util.range(-4, .05, 4);
22  double[] fx = g.evaluate(0, x);
23 
24  p.plot(x, fx, "GaussTest");
25 
26  // while(p.isVisible()) {};
27  }
28 
29  // /**
30  // * Test method for {@link kermor.kernel.GaussKernel#evaluate(org.apache.commons.math.linear.RealMatrix,
31  // org.apache.commons.math.linear.RealMatrix)}.
32  // */
33  // @Test
34  // public void testEvaluateRealMatrixRealMatrix() {
35  // fail("Not yet implemented");
36  // }
37  //
38  // /**
39  // * Test method for {@link kermor.kernel.GaussKernel#evaluate(double[],
40  // org.apache.commons.math.linear.RealMatrix)}.
41  // */
42  // @Test
43  // public void testEvaluateDoubleArrayRealMatrix() {
44  // fail("Not yet implemented");
45  // }
46  //
47  // /**
48  // * Test method for {@link kermor.kernel.GaussKernel#evaluate(double, double[])}.
49  // */
50  // @Test
51  // public void testEvaluateDoubleDoubleArray() {
52  // fail("Not yet implemented");
53  // }
54 
55 }
Interface for kernel implementations in JKerMor.
Definition: IKernel.java:14
Implementation of the Gaussian kernel .
Basic methods for plotting results of dynamical sytem simulations.
Definition: Plotter.java:24
Utility functions.
Definition: Util.java:15