Exposed second moment.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@791685 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
832bcda19c
commit
4ce932e3cd
|
@ -283,6 +283,21 @@ public class SummaryStatistics implements StatisticalSummary, Serializable {
|
|||
public double getSumOfLogs() {
|
||||
return sumLogImpl.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a statistic related to the Second Central Moment. Specifically,
|
||||
* what is returned is the sum of squared deviations from the sample mean
|
||||
* among the values that have been added.
|
||||
* <p>
|
||||
* Returns <code>Double.NaN</code> if no data values have been added and
|
||||
* returns <code>0</code> if there is just one value in the data set.</p>
|
||||
* <p>
|
||||
*
|
||||
* @since 2.0
|
||||
*/
|
||||
public double getSecondMoment() {
|
||||
return secondMoment.getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a text report displaying summary statistics from values that
|
||||
|
|
Loading…
Reference in New Issue