Uses of Class
org.apache.commons.statistics.descriptive.FirstMoment
Packages that use FirstMoment
Package
Description
Implementations of univariate statistics.
-
Uses of FirstMoment in org.apache.commons.statistics.descriptive
Subclasses of FirstMoment in org.apache.commons.statistics.descriptiveModifier and TypeClassDescription(package private) class
Computes the sum of cubed deviations from the sample mean.(package private) class
Computes the sum of fourth deviations from the sample mean.(package private) class
Computes the sum of squared deviations from the sample mean.Fields in org.apache.commons.statistics.descriptive declared as FirstMomentModifier and TypeFieldDescriptionprivate final FirstMoment
Mean.firstMoment
First moment used to compute the mean.private final FirstMoment
DoubleStatistics.moment
The moment implementation.private final FirstMoment
IntStatistics.moment
The moment implementation.private final FirstMoment
LongStatistics.moment
The moment implementation.Fields in org.apache.commons.statistics.descriptive with type parameters of type FirstMomentModifier and TypeFieldDescriptionprivate BiFunction
<org.apache.commons.numbers.core.Sum, double[], FirstMoment> DoubleStatistics.Builder.moment
The moment constructor.private Function
<int[], FirstMoment> IntStatistics.Builder.moment
The moment constructor.private Function
<long[], FirstMoment> LongStatistics.Builder.moment
The moment constructor.Methods in org.apache.commons.statistics.descriptive that return FirstMomentModifier and TypeMethodDescription(package private) FirstMoment
FirstMoment.combine
(FirstMoment other) Combines the state of anotherFirstMoment
into this one.private static FirstMoment
FirstMoment.create
(double[] values) Creates the first moment using a rolling algorithm.(package private) static FirstMoment
FirstMoment.create
(org.apache.commons.numbers.core.Sum sum, double[] values) Creates the first moment.(package private) static FirstMoment
FirstMoment.of
(double... values) Returns an instance populated using the inputvalues
.Methods in org.apache.commons.statistics.descriptive with parameters of type FirstMomentModifier and TypeMethodDescription(package private) static void
Statistics.checkCombineAssignable
(FirstMoment a, FirstMoment b) Check left-hand side argumenta
isnull
or else the right-hand side argumentb
must be run-time assignable to the same class asa
so the statistics can be combined.(package private) FirstMoment
FirstMoment.combine
(FirstMoment other) Combines the state of anotherFirstMoment
into this one.(package private) static void
Statistics.combineMoment
(FirstMoment a, FirstMoment b) If the left-hand side argumenta
is non-null
, combine it with the right-hand side argumentb
.private static SumOfSquaredDeviations
SumOfSquaredDeviations.create
(FirstMoment m1, double[] values) Creates the sum of squared deviations.(package private) double
FirstMoment.getFirstMomentDifference
(FirstMoment other) Gets the difference of the first moment betweenthis
moment and theother
moment.(package private) double
FirstMoment.getFirstMomentHalfDifference
(FirstMoment other) Gets the half the difference of the first moment betweenthis
moment and theother
moment.Constructors in org.apache.commons.statistics.descriptive with parameters of type FirstMomentModifierConstructorDescription(package private)
DoubleStatistics
(long count, Min min, Max max, FirstMoment moment, Sum sum, Product product, SumOfSquares sumOfSquares, SumOfLogs sumOfLogs, StatisticsConfiguration config) Create an instance.(package private)
FirstMoment
(FirstMoment source) Copy constructor.(package private)
IntStatistics
(long count, IntMin min, IntMax max, FirstMoment moment, IntSum sum, Product product, IntSumOfSquares sumOfSquares, SumOfLogs sumOfLogs, StatisticsConfiguration config) Create an instance.(package private)
LongStatistics
(long count, LongMin min, LongMax max, FirstMoment moment, LongSum sum, Product product, LongSumOfSquares sumOfSquares, SumOfLogs sumOfLogs, StatisticsConfiguration config) Create an instance.(package private)
Mean
(FirstMoment m1) Creates an instance with a moment.private
SumOfSquaredDeviations
(double sumSquaredDev, FirstMoment m1) Create an instance with the given sum of squared deviations and first moment.