NormalSummary extends AbstractObservable implements MCMCResultsListener, Summary { public boolean getDefined() { return d_defined; } NormalSummary(MCMCResults results, Parameter parameter); void resultsEvent(MCMCResultsEvent event); boolean getDefined(); double getMean(); double getStandardDeviation(); static final String PROPERTY_MEAN; static final String PROPERTY_STANDARD_DEVIATION; }
@Test public void testDefined() { Summary x = new NormalSummary(d_results, d_results.getParameters()[0]); assertFalse(x.getDefined()); d_results.makeSamplesAvailable(); assertTrue(x.getDefined()); }
@Test public void testWithUninitializedResults() { Summary x = new NormalSummary(new YadasResults(), d_results.getParameters()[0]); assertFalse(x.getDefined()); }