Update HiddenMarkovModel class
authorTZVanaalten <TZVanaalten@LS30916.ad.lifesci.dundee.ac.uk>
Thu, 15 Jun 2017 11:38:03 +0000 (12:38 +0100)
committerTZVanaalten <TZVanaalten@LS30916.ad.lifesci.dundee.ac.uk>
Thu, 15 Jun 2017 11:38:03 +0000 (12:38 +0100)
src/jalview/datamodel/EValueStatistic.java [new file with mode: 0644]
test/jalview/datamodel/HiddenMarkovModelTest.java [new file with mode: 0644]

diff --git a/src/jalview/datamodel/EValueStatistic.java b/src/jalview/datamodel/EValueStatistic.java
new file mode 100644 (file)
index 0000000..4641d2e
--- /dev/null
@@ -0,0 +1,40 @@
+package jalview.datamodel;
+
+/**
+ * bean which stores e-Value Statistics
+ * 
+ * @author TZVanaalten
+ *
+ */
+public class EValueStatistic
+{
+  final String alignmentModeConfiguration;
+
+  final double locationOfDistribution;
+
+  final double slopeOfDistribution;
+
+  public EValueStatistic(String configuration, double slope,
+          double location)
+  {
+    alignmentModeConfiguration = configuration;
+    locationOfDistribution = location;
+    slopeOfDistribution = slope;
+  }
+
+  public String getAlignmentModeConfiguration()
+  {
+    return alignmentModeConfiguration;
+  }
+
+  public double getLocationOfDistribution()
+  {
+    return locationOfDistribution;
+  }
+
+  public double getSlopeOfDistribution()
+  {
+    return slopeOfDistribution;
+  }
+
+}
diff --git a/test/jalview/datamodel/HiddenMarkovModelTest.java b/test/jalview/datamodel/HiddenMarkovModelTest.java
new file mode 100644 (file)
index 0000000..ae1bf55
--- /dev/null
@@ -0,0 +1,16 @@
+package jalview.datamodel;
+
+import org.testng.annotations.Test;
+
+public class HiddenMarkovModelTest
+{
+  HiddenMarkovModel hmm = new HiddenMarkovModel();
+
+  @Test
+  public void testGetGatheringThresholdGA1()
+  {
+    hmm.put("GA1", "10.1");
+    // assertEquals(hmm.getGatheringThresholdGA1(), 10.1);
+  }
+
+}
\ No newline at end of file