public class Operations extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Operations.Aggregator
A method specifying how to compute the aggregation of values (sum, mean, etc.)
|
Constructor and Description |
---|
Operations() |
Modifier and Type | Method and Description |
---|---|
static StatsHypercube |
compute(StatsHypercube hc1,
StatsHypercube hc2,
BinaryOperator<Double> bop)
Compute a binary operation.
|
static StatsHypercube |
compute(StatsHypercube hc,
UnaryOperator<Double> uop)
Compute a unary operation on hypercube values.
|
static Collection<Stat> |
computeAggregation(StatsHypercube hc,
Operations.Aggregator agg,
String dimLabel,
String aggDimValue)
Compute an aggregated value of all values along a dimension.
|
static Collection<Stat> |
computeMaxDim(StatsHypercube hc,
String dimLabel,
String maxDimValue)
Compute the maximum of all values along a dimension.
|
static Collection<Stat> |
computeMeanDim(StatsHypercube hc,
String dimLabel,
String meanDimValue)
Compute the mean of all values along a dimension.
|
static Collection<Stat> |
computeMedianDim(StatsHypercube hc,
String dimLabel,
String medianDimValue)
Compute the median of all values along a dimension.
|
static Collection<Stat> |
computeMinDim(StatsHypercube hc,
String dimLabel,
String minDimValue)
Compute the minimum of all values along a dimension.
|
static Collection<Stat> |
computePercentileDim(StatsHypercube hc,
int percentile,
String dimLabel,
String percentileDimValue)
Compute a percentile of all values along a dimension.
|
static Collection<Stat> |
computeQuartile1Dim(StatsHypercube hc,
String dimLabel,
String q1DimValue)
Compute the first quantile of all values along a dimension.
|
static Collection<Stat> |
computeQuartile2Dim(StatsHypercube hc,
String dimLabel,
String q2DimValue)
Compute the second quantile of all values along a dimension.
|
static Collection<Stat> |
computeRMSDim(StatsHypercube hc,
String dimLabel,
String rmsDimValue)
Compute the RMS of all values along a dimension.
|
static Collection<Stat> |
computeStdDim(StatsHypercube hc,
String dimLabel,
String stdDimValue)
Compute the standard deviation of all values along a dimension.
|
static Collection<Stat> |
computeSumDim(StatsHypercube hc,
String dimLabel,
String sumDimValue)
Compute the sum of all values along a dimension.
|
public static StatsHypercube compute(StatsHypercube hc, UnaryOperator<Double> uop)
hc
- uop
- public static StatsHypercube compute(StatsHypercube hc1, StatsHypercube hc2, BinaryOperator<Double> bop)
hc1
- hc2
- bop
- public static Collection<Stat> computeAggregation(StatsHypercube hc, Operations.Aggregator agg, String dimLabel, String aggDimValue)
hc
- agg
- The aggregation operation.dimLabel
- The dimension to aggregate along.aggDimValue
- The dimension value for the new aggregated value.public static Collection<Stat> computeSumDim(StatsHypercube hc, String dimLabel, String sumDimValue)
hc
- dimLabel
- sumDimValue
- The dimension value for the new value.public static Collection<Stat> computeMaxDim(StatsHypercube hc, String dimLabel, String maxDimValue)
hc
- dimLabel
- maxDimValue
- The dimension value for the new value.public static Collection<Stat> computeMinDim(StatsHypercube hc, String dimLabel, String minDimValue)
hc
- dimLabel
- minDimValue
- The dimension value for the new value.public static Collection<Stat> computeMeanDim(StatsHypercube hc, String dimLabel, String meanDimValue)
hc
- dimLabel
- meanDimValue
- The dimension value for the new value.public static Collection<Stat> computePercentileDim(StatsHypercube hc, int percentile, String dimLabel, String percentileDimValue)
hc
- percentile
- dimLabel
- percentileDimValue
- The dimension value for the new value.public static Collection<Stat> computeMedianDim(StatsHypercube hc, String dimLabel, String medianDimValue)
hc
- dimLabel
- medianDimValue
- The dimension value for the new value.public static Collection<Stat> computeQuartile1Dim(StatsHypercube hc, String dimLabel, String q1DimValue)
hc
- dimLabel
- q1DimValue
- public static Collection<Stat> computeQuartile2Dim(StatsHypercube hc, String dimLabel, String q2DimValue)
hc
- dimLabel
- q2DimValue
- public static Collection<Stat> computeStdDim(StatsHypercube hc, String dimLabel, String stdDimValue)
hc
- dimLabel
- stdDimValue
- public static Collection<Stat> computeRMSDim(StatsHypercube hc, String dimLabel, String rmsDimValue)
hc
- dimLabel
- rmsDimValue
- Copyright © 2020. All rights reserved.