Class EventBasedTallyTest

    • Constructor Detail

      • EventBasedTallyTest

        public EventBasedTallyTest()
    • Method Detail

      • testEventBasedTally

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

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

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

        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

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