public final class SphericalDescriptiveStatistics extends Object
UnitCartesian
directions locating the data points on the unit sphere.
The algorithms are based on the mathematics found in "Directional Statistics" by Mardia and Jupp.Modifier and Type | Method and Description |
---|---|
static double |
dispersionAboutPosition(List<UnitCartesian> dataList,
UnitSpherical position)
Calculates the dispersion about a given input position.
|
static UnitSpherical |
meanDirection(List<UnitCartesian> dataList)
Calculates the mean direction of a list of data.
|
static double |
meanResultantLength(List<UnitCartesian> dataList)
Calculates the mean resultant length of a list of data.
|
static Spherical |
meanVector(List<UnitCartesian> dataList)
Computes the mean vector.
|
static UnitSpherical |
medianDirection(List<UnitCartesian> dataList)
Calculates the median direction of the data by using a simplex heuristic optimizer.
|
static UnitSpherical |
medianDirection(List<UnitCartesian> dataList,
SphericalMedianCalculationMethod calculationMethod)
Calculates the median direction of the data by using a simplex heuristic optimizer.
|
static UnitSpherical |
medianDirection(List<UnitCartesian> dataList,
SphericalMedianCalculationMethod calculationMethod,
MultivariableFunctionSolverResults<MultivariableFunctionSolverIterationResults>[] results)
Calculates the median direction of the data by using a simplex heuristic optimizer.
|
static Matrix3By3Symmetric |
scatterMatrix(List<UnitCartesian> dataList)
Calculates the scatter matrix based upon the input data.
|
static double |
variance(List<UnitCartesian> dataList)
Calculates the variance of a list of data.
|
@Nonnull public static Spherical meanVector(@Nonnull List<UnitCartesian> dataList)
dataList
- The list of data to use to calculate the mean vector.ArgumentNullException
- Thrown when dataList
is null
.ArgumentException
- Thrown when dataList
is empty.public static double meanResultantLength(@Nonnull List<UnitCartesian> dataList)
The output range is 0 ≤ R ≤ 1.
dataList
- The list of data to use to calculate the mean resultant length.@Nonnull public static UnitSpherical meanDirection(@Nonnull List<UnitCartesian> dataList)
dataList
- The list of data to use to calculate the mean direction.@Nonnull public static UnitSpherical medianDirection(@Nonnull List<UnitCartesian> dataList)
SphericalMedianCalculationMethod.NORMALIZED_SPATIAL_MEDIAN
which minimizes the normalized spatial median function.dataList
- The list of data to use to calculate the median direction.@Nonnull public static UnitSpherical medianDirection(@Nonnull List<UnitCartesian> dataList, @Nonnull SphericalMedianCalculationMethod calculationMethod)
dataList
- The list of data to use to calculate the median direction.calculationMethod
- The function to minimize in order to calculate the spherical median. See SphericalMedianCalculationMethod
for more information.@Nonnull public static UnitSpherical medianDirection(@Nonnull List<UnitCartesian> dataList, @Nonnull SphericalMedianCalculationMethod calculationMethod, @Nonnull MultivariableFunctionSolverResults<MultivariableFunctionSolverIterationResults>[] results)
dataList
- The list of data to use to calculate the median direction.calculationMethod
- The function to minimize in order to calculate the spherical median. See SphericalMedianCalculationMethod
for more information.results
- The results of the optimizer. This data structure contains any warnings from the optimizer.public static double variance(@Nonnull List<UnitCartesian> dataList)
The output range is 0 ≤ V ≤ 1.
dataList
- The list of data to use to calculate the variance.public static double dispersionAboutPosition(@Nonnull List<UnitCartesian> dataList, @Nonnull UnitSpherical position)
dataList
- The list of data to use to calculate the dispersion.position
- The position about which the dispersion should be calculated.@Nonnull public static Matrix3By3Symmetric scatterMatrix(@Nonnull List<UnitCartesian> dataList)
dataList
- The list of data to use to calculate the scatter matrix.Cartesian
space.