Package com.yahoo.statistics
Class Value
java.lang.Object
com.yahoo.statistics.Handle
com.yahoo.statistics.Value
Deprecated.
A statistical variable, typically representing a sampling of an
arbitrarily changing parameter.
- Author:
- Steinar Knutsen
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.Parameters for building Value instances. -
Constructor Summary
ConstructorDescriptionValue
(String name, Statistics manager, Value.Parameters parameters) Deprecated.Configure a Value instance fully, no raw config access. -
Method Summary
Modifier and TypeMethodDescriptionstatic Value
buildValue
(String name, Statistics manager, Value.Parameters defaults) Deprecated.Build a Value which should be initialized from config.boolean
Deprecated.double
get()
Deprecated.Get last value logged, 0 if nothing logged since reset.double
getMax()
Deprecated.Get maximum value logged since last reset.double
getMean()
Deprecated.Get mean value since last reset.double
getMin()
Deprecated.Get minimal value logged since last reset.int
hashCode()
Deprecated.void
put
(double x) Deprecated.Insert x, do all pertinent operations.void
reset()
Deprecated.Set last value logged container to 0, reset histogram and set all counters and derived statistics to 0.void
Deprecated.Dump state to log and reset.toString()
Deprecated.Methods inherited from class com.yahoo.statistics.Handle
cancel, isCancelled, run, runCallback
-
Constructor Details
-
Value
Deprecated.Configure a Value instance fully, no raw config access.- Parameters:
name
- tag for loggingmanager
- the statistics manager acquired by injectionparameters
- all the parameters necessary for initializing a Value- Throws:
IllegalStateException
- if Parameters.limits exists and is not frozen
-
-
Method Details
-
buildValue
Deprecated.Build a Value which should be initialized from config.- Parameters:
name
- the name of the event in the logmanager
- the current Statistics manager, acquired by injectiondefaults
- 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. -
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-