Package ai.platon.pulsar.common.math
Class MathsKt
-
- All Implemented Interfaces:
public final class MathsKt
-
-
Method Summary
Modifier and Type Method Description final static Pair<Double, Double>getOutlierInnerFence(DoubleArray values, Double p1, Double p2, Double smooth)Find out outlier fencesThe inter-quartile range (IQR), also called the mid-spread or middle 50%The values for Q1 – 1.5×IQR and Q3 + 1.5×IQR are the "fences" that mark off the "reasonable" values from the outlier values. final static Pair<Double, Double>getOutlierInnerFence(DescriptiveStatistics ds, Double p1, Double p2, Double smooth)final static Pair<Double, Double>getOutlierOuterFence(DoubleArray values, Double p1, Double p2, Double smooth)final static Pair<Double, Double>getOutlierOuterFence(DescriptiveStatistics ds, Double p1, Double p2, Double smooth)-
-
Method Detail
-
getOutlierInnerFence
final static Pair<Double, Double> getOutlierInnerFence(DoubleArray values, Double p1, Double p2, Double smooth)
Find out outlier fences
The inter-quartile range (IQR), also called the mid-spread or middle 50%
The values for Q1 – 1.5×IQR and Q3 + 1.5×IQR are the "fences" that mark off the "reasonable" values from the outlier values. Outliers lie outside the fences.
If we also consider "extreme values", then the values for Q1 – 1.5×IQR and Q3 + 1.5×IQR are the "inner" fences and the values for Q1 – 3×IQR and Q3 + 3×IQR are the "outer" fences.
- Parameters:
values- The valuesp1- The q1 percentilep2- The q3 percentilesmooth- The smooth- Returns:
The outlier fence
-
getOutlierInnerFence
final static Pair<Double, Double> getOutlierInnerFence(DescriptiveStatistics ds, Double p1, Double p2, Double smooth)
-
getOutlierOuterFence
final static Pair<Double, Double> getOutlierOuterFence(DoubleArray values, Double p1, Double p2, Double smooth)
-
-
-
-