Uses of Class
org.apache.commons.statistics.descriptive.FirstMoment
-
Packages that use FirstMoment Package Description org.apache.commons.statistics.descriptive Implementations of univariate statistics. -
-
Uses of FirstMoment in org.apache.commons.statistics.descriptive
Subclasses of FirstMoment in org.apache.commons.statistics.descriptive Modifier and Type Class Description (package private) class
SumOfCubedDeviations
Computes the sum of cubed deviations from the sample mean.(package private) class
SumOfFourthDeviations
Computes the sum of fourth deviations from the sample mean.(package private) class
SumOfSquaredDeviations
Computes the sum of squared deviations from the sample mean.Fields in org.apache.commons.statistics.descriptive declared as FirstMoment Modifier and Type Field Description private FirstMoment
Mean. firstMoment
First moment used to compute the mean.private FirstMoment
DoubleStatistics. moment
The moment implementation.private FirstMoment
IntStatistics. moment
The moment implementation.private FirstMoment
LongStatistics. moment
The moment implementation.Fields in org.apache.commons.statistics.descriptive with type parameters of type FirstMoment Modifier and Type Field Description private java.util.function.BiFunction<org.apache.commons.numbers.core.Sum,double[],FirstMoment>
DoubleStatistics.Builder. moment
The moment constructor.private java.util.function.Function<int[],FirstMoment>
IntStatistics.Builder. moment
The moment constructor.private java.util.function.Function<long[],FirstMoment>
LongStatistics.Builder. moment
The moment constructor.Methods in org.apache.commons.statistics.descriptive that return FirstMoment Modifier and Type Method Description (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 FirstMoment Modifier and Type Method Description (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 FirstMoment Constructor Description DoubleStatistics(long count, Min min, Max max, FirstMoment moment, Sum sum, Product product, SumOfSquares sumOfSquares, SumOfLogs sumOfLogs, StatisticsConfiguration config)
Create an instance.FirstMoment(FirstMoment source)
Copy constructor.IntStatistics(long count, IntMin min, IntMax max, FirstMoment moment, IntSum sum, Product product, IntSumOfSquares sumOfSquares, SumOfLogs sumOfLogs, StatisticsConfiguration config)
Create an instance.LongStatistics(long count, LongMin min, LongMax max, FirstMoment moment, LongSum sum, Product product, LongSumOfSquares sumOfSquares, SumOfLogs sumOfLogs, StatisticsConfiguration config)
Create an instance.Mean(FirstMoment m1)
Creates an instance with a moment.SumOfSquaredDeviations(double sumSquaredDev, FirstMoment m1)
Create an instance with the given sum of squared deviations and first moment.
-