Class EventBasedTallyTest
java.lang.Object
org.djutils.stats.summarizers.event.EventBasedTallyTest
public class EventBasedTallyTest extends Object
The TallyTest test the tally.
 
 Copyright (c) 2002-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See
 for project information  https://simulation.tudelft.nl. The DSOL
 project is distributed under a three-clause BSD-style license, which can be found at
 
 https://simulation.tudelft.nl/dsol/3.0/license.html. 
- Author:
 - Alexander Verbraeck, Peter Knoppers
 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classEventBasedTallyTest.ObservationEventListenerThe listener that counts the OBSERVATION_ADDED_EVENT events and checks correctness. - 
Constructor Summary
Constructors Constructor Description EventBasedTallyTest() - 
Method Summary
Modifier and Type Method Description (package private) doublegenerateGaussianNoise(double mu, double sigma, Random random)Generate normally distributed values.voidtestEventBasedTally()Test the event based tally.voidtestFullStorageAccumulator()Test the Event based tally with the FullStorageAccumulator.voidtestNoStorageAccumulator()Test EventBasedTally with the NoStorageAccumulator.voidtestTallyEventProduction()Test produced events by EventBasedTally. 
- 
Constructor Details
- 
EventBasedTallyTest
public EventBasedTallyTest() 
 - 
 - 
Method Details
- 
testEventBasedTally
public void testEventBasedTally()Test the event based tally. - 
testTallyEventProduction
public void testTallyEventProduction()Test produced events by EventBasedTally. - 
testNoStorageAccumulator
public void testNoStorageAccumulator()Test EventBasedTally with the NoStorageAccumulator. - 
testFullStorageAccumulator
public void testFullStorageAccumulator()Test the Event based tally with the FullStorageAccumulator. - 
generateGaussianNoise
Generate normally distributed values. Derived from https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform- Parameters:
 mu- double; meansigma- double; standard deviationrandom- Random; entropy source- Returns:
 - double; one pseudo random value
 
 
 -