View Javadoc
1   package org.djutils.stats.summarizers;
2   
3   /**
4    * TallyStatistic makes the common methods of any type of Tally available (unweighted, weighted, timestamped, or event based).
5    * <p>
6    * Copyright (c) 2023-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See
7    * for project information <a href="https://djutils.org" target="_blank"> https://djutils.org</a>. The DJUTILS project is
8    * distributed under a three-clause BSD-style license, which can be found at
9    * <a href="https://djutils.org/docs/license.html" target="_blank"> https://djutils.org/docs/license.html</a>.
10   * </p>
11   * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
12   */
13  public interface TallyStatistic extends Statistic
14  {
15      /**
16       * Returns the maximum value of any given observation, or NaN when no observations were registered.
17       * @return double; the maximum value of any given observation
18       */
19      double getMax();
20  
21      /**
22       * Returns the minimum value of any given observation, or NaN when no observations were registered.
23       * @return double; the minimum value of any given observation
24       */
25      double getMin();
26  
27  }