public class BoxPlotCalcUtil extends Object
| Constructor and Description |
|---|
BoxPlotCalcUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Double[] |
calcBoxPlotValues(List<Double> sortedDataAscendingOrder)
calculates the 5 values needed to create a box plot and returns them in an 5 item sized array.
|
static Double |
firstQuantile(List<Double> sortedDataAscendingOrder)
Get the firstQuantile value thru linear interpolations
|
static double |
iqr(double thirdQuantile,
double firstQuantile)
IQR inner quartile range
|
static Double |
maximum(List<Double> sortedDataAscendingOrder)
Get the maximum value thru linear interpolations
|
static Double |
median(List<Double> sortedDataAscendingOrder)
Get the median value thru linear interpolations
|
static Double |
minimum(List<Double> sortedDataAscendingOrder)
Get the minimum value thru linear interpolations
|
static Double |
thirdQuantile(List<Double> sortedDataAscendingOrder)
Get the thirdQuantile value thru linear interpolations
|
public static Double[] calcBoxPlotValues(List<Double> sortedDataAscendingOrder)
Double[0] = minimum; Double[1] = firstQuantile; Double[2] = median; Double[3] = thirdQuantile; Double[4] = maximum;
sortedDataAscendingOrder - public static double iqr(double thirdQuantile,
double firstQuantile)
thirdQuantile - firstQuantile - public static Double minimum(List<Double> sortedDataAscendingOrder)
sortedDataAscendingOrder - public static Double maximum(List<Double> sortedDataAscendingOrder)
sortedDataAscendingOrder - public static Double median(List<Double> sortedDataAscendingOrder)
sortedDataAscendingOrder - public static Double firstQuantile(List<Double> sortedDataAscendingOrder)
sortedDataAscendingOrder - Copyright © 2017. All Rights Reserved.