public class FourthMoment extends ThirdMoment implements java.io.Serializable
(x_i - xbar) ^ 4,
where the x_i are the sample observations and xbar is the sample mean.
The following recursive updating formula is used:
new value = old value - 4 * (dev/n) * m3 + 6 * (dev/n)^2 * m2 +
[n^2 - 3 * (n-1)] * dev^4 * (n-1) / n^3
Double.NaN if no data values have been added and
0 if there is just one value in the data set.
Note that this implementation is not synchronized. If
multiple threads access an instance of this class concurrently, and at least
one of the threads invokes the
clear() method, it must be synchronized externally.
|Constructor and Description|
Create a FourthMoment instance
Copy constructor, creates a new
|Modifier and Type||Method and Description|
Clears the internal state of the Statistic
Returns a copy of the statistic with the same internal state.
Copies source to dest.
Returns the current value of the Statistic.
Updates the internal state of the statistic to reflect the addition of the new value.
equals, evaluate, evaluate, hashCode, incrementAll, incrementAll
evaluate, getData, setData, setData
public FourthMoment(FourthMoment original)
FourthMomentidentical to the
FourthMomentinstance to copy
public void increment(double d)
public double getResult()
public void clear()
public FourthMoment copy()
Copyright © 2010 - 2020 Adobe. All Rights Reserved