Class AbstractDataContainerStatistics<T extends DataContainer>

    • Field Detail

      • m_Prefix

        protected String m_Prefix
        the prefix to use.
    • Constructor Detail

      • AbstractDataContainerStatistics

        public AbstractDataContainerStatistics()
    • Method Detail

      • setPrefix

        public void setPrefix​(String value)
        Sets the prefix to use.
        Parameters:
        value - the prefix
      • getPrefix

        public String getPrefix()
        Returns the prefix to use.
        Returns:
        the prefix
      • prefixTipText

        public String prefixTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setStatistics

        public void setStatistics​(AbstractArrayStatistic[] value)
        Sets the statistics to use.
        Parameters:
        value - the statistics
      • getStatistics

        public AbstractArrayStatistic[] getStatistics()
        Returns the statistics to use.
        Returns:
        the statistics
      • statisticsTipText

        public String statisticsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • check

        protected void check​(T cont)
        Performs some checks before executing the calculations.

        Default implementation ensures that prefix is not empty and at least one array statistic has been supplied.
        Parameters:
        cont - the current container
      • createArrays

        protected abstract List<Double[]> createArrays​(T cont)
        Generates the arrays to work with.
        Parameters:
        cont - the container to work on
        Returns:
        the generated arrays
      • calculate

        protected void calculate​(int index,
                                 Double[] array,
                                 Hashtable<String,​Double> values)
        Performs the actual calculations of the statistics.
        Parameters:
        index - the
        array - the array to use as basis for the calculations
        values - the container to store the statistics in
      • calculate

        public Hashtable<String,​Double> calculate​(T cont)
        Calculates the statistics.
        Parameters:
        cont - the container to generate the statistics for
        Returns:
        the generated statistics (name - value relation)