|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.StddevValue
public final class StddevValue
A long
value aggregated by the DTrace stddev()
action.
Immutable. Supports persistence using XMLEncoder
.
Aggregation
,
Serialized FormConstructor Summary | |
---|---|
StddevValue(long v,
long stddevTotal,
long stddevCount,
java.lang.String stddevTotalSquaresString)
Creates a value aggregated by the DTrace stddev() action. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares the specified object with this aggregation value for equality. |
long |
getCount()
Gets the number of aggregated values included in the standard deviation. |
long |
getTotal()
Gets the sum total of the aggregated values. |
java.math.BigInteger |
getTotalSquares()
Gets the sum total of the squares of the aggregated values. |
java.lang.Long |
getValue()
Gets the standard deviation of the aggregated values. |
int |
hashCode()
Overridden to ensure that equal instances have equal hash codes. |
java.lang.String |
toString()
Gets the string representation of getValue() . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StddevValue(long v, long stddevTotal, long stddevCount, java.lang.String stddevTotalSquaresString)
stddev()
action.
Supports XML persistence.
v
- standard deviationstddevTotal
- sum total of all values included in the standard
deviationstddevCount
- number of values included in the standard
deviationstddevTotalSquaresString
- decimal string representation of
the 128-bit sum total of the squares of all values included in
the standard deviation
java.lang.IllegalArgumentException
- if the given count is negative
or if the given standard deviation is not the value expected for
the given total, total of squares, and count
java.lang.NumberFormatException
- if the given total squares is not a
valid integer representationMethod Detail |
---|
public java.lang.Long getValue()
getValue
in interface AggregationValue
public long getTotal()
public long getCount()
public java.math.BigInteger getTotalSquares()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
true
if and only if the specified object is an
aggregation value of the same Class
as this value, and
both values return equal numbers from getValue()
.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
getValue()
.
toString
in class java.lang.Object
getValue()
returned
by Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |