Class Quartile
java.lang.Object
org.tribuo.data.columnar.processors.response.Quartile
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable
,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
public class Quartile
extends Object
implements com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
A quartile to split data into 4 chunks.
-
Constructor Summary
ConstructorDescriptionQuartile
(double median, double lowerMedian, double upperMedian) Constructs a quartile with the specified values. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the lower quartile value.double
Returns the median value.com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
double
The upper quartile value.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
-
Constructor Details
-
Quartile
public Quartile(double median, double lowerMedian, double upperMedian) Constructs a quartile with the specified values.- Parameters:
median
- The median.lowerMedian
- The lower quartile.upperMedian
- The upper quartile.
-
-
Method Details
-
getMedian
public double getMedian()Returns the median value.- Returns:
- The median.
-
getLowerMedian
public double getLowerMedian()Returns the lower quartile value.- Returns:
- The lower quartile value.
-
getUpperMedian
public double getUpperMedian()The upper quartile value.- Returns:
- The upper quartile value.
-
toString
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()- Specified by:
getProvenance
in interfacecom.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
-