package org.djutils.stats.summarizers; /** * The WeightedTally interface defines the methods that a time-weighted tally should implement. *

* Copyright (c) 2002-2021 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 * @author Peter Knoppers */ public interface WeightedTallyInterface extends BasicTallyInterface { /** * Retrieve the current weighted sample mean of all observations since the initialization. * @return double; the current weighted sample mean */ double getWeightedSampleMean(); /** * Retrieve the current weighted mean of all observations since the initialization. * @return double; the current weighted mean */ default double getWeightedPopulationMean() { return getWeightedSampleMean(); } /** * Retrieve the current weighted sample standard deviation of the observations. * @return double; the current weighted sample standard deviation */ double getWeightedSampleStDev(); /** * Retrieve the current weighted standard deviation of the observations. * @return double; the current weighted standard deviation */ double getWeightedPopulationStDev(); /** * Retrieve the current weighted sample variance of the observations. * @return double; the current weighted sample variance of the observations */ double getWeightedSampleVariance(); /** * Retrieve the current weighted variance of the observations. * @return double; the current weighted variance of the observations */ double getWeightedPopulationVariance(); /** * Retrieve the current weighted sum of the values of the observations. * @return double; the current weighted sum of the values of the observations */ double getWeightedSum(); }