public final class IntervalStatistics extends Object
Modifier and Type | Method and Description |
---|---|
static IntervalStatistics |
calculate(double min,
double max)
Calculates statistics for a single interval.
|
static IntervalStatistics |
calculate(Table table)
Calculates statistics using table probabilities as weights for each interval.
|
double |
getMean()
Gets the mean of the discretized variable.
|
double |
getVariance()
Gets the variance of the discretized variable.
|
public double getMean()
public double getVariance()
public static IntervalStatistics calculate(Table table)
table
- A table based on a discretized variable.public static IntervalStatistics calculate(double min, double max)
min
- The interval minimum.max
- The interval maximum.Copyright © 2023. All rights reserved.