|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.util.IncrementalStats
peersim.util.MomentStats
public class MomentStats
This class provides extended statistical informations about the inspected distribution. In particular, it provides functions to compute the skewness (the 3rd degree moment) and the kurtosis (4th degree moment).
| Constructor Summary | |
|---|---|
MomentStats()
Calls reset() |
|
| Method Summary | |
|---|---|
void |
add(double item,
int k)
Updates the statistics assuming element item is added
k times. |
double |
getKurtosis()
Computes the kurtosis on the node values distribution and returns the flatness coefficient. |
double |
getSkewness()
Computes the skewness on the node values distribution and returns the asymmetry coefficient. |
void |
reset()
Resets the statistics to reflect the zero elements set. |
java.lang.String |
toString()
Outputs on a single line the superclass statistics postfixed by the current skewness and kurtosis. |
| Methods inherited from class peersim.util.IncrementalStats |
|---|
add, getAverage, getMax, getMaxCount, getMin, getMinCount, getN, getSqrSum, getStD, getSum, getVar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MomentStats()
reset()
| Method Detail |
|---|
public void reset()
IncrementalStats
reset in class IncrementalStats
public void add(double item,
int k)
IncrementalStatsitem is added
k times.
add in class IncrementalStatspublic java.lang.String toString()
toString in class IncrementalStatspublic double getSkewness()
public double getKurtosis()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||