public class StatsFormatter
extends java.lang.Object
| Constructor and Description |
|---|
StatsFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatNumber(double number) |
static java.lang.String |
formatNumber(double number,
int decimals) |
static java.lang.String |
formatNumberNoWidth(double number,
int decimals) |
static java.lang.String |
formatStats(weka.core.Instances headerWithSummary,
boolean quantiles,
int decimalPlaces)
Format stats contained in an Instance header that contains summary
attributes
|
static java.lang.String |
formatStats(weka.core.Instances header,
Stats[] attributeStats,
boolean quantiles,
int decimalPlaces)
Format stats contained in the supplied array of Stats objects
|
public static java.lang.String formatStats(weka.core.Instances headerWithSummary,
boolean quantiles,
int decimalPlaces)
throws DistributedWekaException
headerWithSummary - the header with summary attributesquantiles - true if quantiles were includeddecimalPlaces - the number of decimal places to use in the outputDistributedWekaException - if a problem occurspublic static java.lang.String formatStats(weka.core.Instances header,
Stats[] attributeStats,
boolean quantiles,
int decimalPlaces)
attributeStats - the array of Stats objectsquantiles - true if quantiles were includeddecimalPlaces - the number of decimal places to use in the outputpublic static java.lang.String formatNumber(double number)
public static java.lang.String formatNumber(double number,
int decimals)
public static java.lang.String formatNumberNoWidth(double number,
int decimals)