Class Value


  • @Deprecated
    public class Value
    extends Handle
    Deprecated.
    A statistical variable, typically representing a sampling of an arbitrarily changing parameter.
    Author:
    Steinar Knutsen
    • Constructor Detail

      • Value

        public Value​(String name,
                     Statistics manager,
                     Value.Parameters parameters)
        Deprecated.
        Configure a Value instance fully, no raw config access.
        Parameters:
        name - tag for logging
        manager - the statistics manager acquired by injection
        parameters - all the parameters necessary for initializing a Value
        Throws:
        IllegalStateException - if Parameters.limits exists and is not frozen
    • Method Detail

      • buildValue

        public static Value buildValue​(String name,
                                       Statistics manager,
                                       Value.Parameters defaults)
        Deprecated.
        Build a Value which should be initialized from config.
        Parameters:
        name - the name of the event in the log
        manager - the current Statistics manager, acquired by injection
        defaults - defaults for values not defined by config, this may be null
      • put

        public void put​(double x)
        Deprecated.
        Insert x, do all pertinent operations. (Update histogram, update insertion count for calculating mean, etc.)
      • getMean

        public double getMean()
        Deprecated.
        Get mean value since last reset.
      • getMin

        public double getMin()
        Deprecated.
        Get minimal value logged since last reset.
      • getMax

        public double getMax()
        Deprecated.
        Get maximum value logged since last reset.
      • get

        public double get()
        Deprecated.
        Get last value logged, 0 if nothing logged since reset.
      • reset

        public void reset()
        Deprecated.
        Set last value logged container to 0, reset histogram and set all counters and derived statistics to 0.
      • runHandle

        public void runHandle()
        Deprecated.
        Dump state to log and reset.
        Specified by:
        runHandle in class Handle
      • equals

        public boolean equals​(Object o)
        Deprecated.
        Specified by:
        equals in class Handle
      • hashCode

        public int hashCode()
        Deprecated.
        Specified by:
        hashCode in class Handle