Class EventBasedTallyTest

java.lang.Object
org.djutils.stats.summarizers.event.EventBasedTallyTest

public class EventBasedTallyTest extends Object
The TallyTest test the tally.

Copyright (c) 2002-2024 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
  • Constructor Details

    • EventBasedTallyTest

      public EventBasedTallyTest()
  • Method Details

    • testEventBasedTally

      @Test public void testEventBasedTally()
      Test the event based tally.
    • testTallyEventProduction

      @Test public void testTallyEventProduction() throws RemoteException
      Test produced events by EventBasedTally.
      Throws:
      RemoteException - on network error
    • testNoStorageAccumulator

      @Test public void testNoStorageAccumulator()
      Test EventBasedTally with the NoStorageAccumulator.
    • testFullStorageAccumulator

      @Test public void testFullStorageAccumulator()
      Test the Event based tally with the FullStorageAccumulator.
    • generateGaussianNoise

      double generateGaussianNoise(double mu, double sigma, Random random)
      Generate normally distributed values. Derived from https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform
      Parameters:
      mu - double; mean
      sigma - double; standard deviation
      random - Random; entropy source
      Returns:
      double; one pseudo random value
    • testEventBasedTallyRemote

      @Test public void testEventBasedTallyRemote() throws RemoteException
      Test the event-based tally for RemoteExceptions.
      Throws:
      RemoteException - on network error for the event-based statistic