|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.spc.math.ValuesCalculator
lt.monarch.chart.spc.math.HistogramValuesCalculator
public class HistogramValuesCalculator extends ValuesCalculator
Calculates values for histogram chart. Values are calculated using formulas: http://www.singleton-labs.com/doc/mcharts/guide/#guide/chart-types/4.5.1.html
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.spc.math.ValuesCalculator |
|---|
nullName |
| Constructor and Description |
|---|
HistogramValuesCalculator()
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount(ChartDataModel dataModel)
Calculates the number of values in the data model. |
ChartDataInfo |
getDataModel(ChartDataModel srcModel,
java.util.List<BinCenter> binCenters,
int bins,
ChartDataModel dstModel)
Calculates histogram data model. |
double |
getMean(ChartDataModel dataModel)
Calculates the average value of the data. |
void |
getNormalDistributionModel(double from,
double to,
double step,
double mean,
double std,
double scale,
ChartDataModel dstModel)
Fills normal distribution values to a data model, from specified interval and multiplies the calculated value by the scale parameter |
double |
getStdDev(ChartDataModel dataModel)
Calculates standard deviation value from the data. |
protected void |
validateDataModel(ChartDataModel dataModel)
Checks if histogram data satisfied the minimal requirements. |
| Methods inherited from class lt.monarch.chart.spc.math.ValuesCalculator |
|---|
average, fill, fill, fillColumn, fillColumn, fillConstant, fillConstant, getAverage, getc4, getColumn, getd2, getd3, getD3, getD4, getDouble, getE, getF, getG, getH, isEmpty, isNconstant, validateDataModel, validateDataModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HistogramValuesCalculator()
| Method Detail |
|---|
public double getMean(ChartDataModel dataModel)
throws DataFormatException
DataFormatExceptionpublic int getCount(ChartDataModel dataModel)
dataModel -
public double getStdDev(ChartDataModel dataModel)
throws DataFormatException
dataModel - DataFormatException
public ChartDataInfo getDataModel(ChartDataModel srcModel,
java.util.List<BinCenter> binCenters,
int bins,
ChartDataModel dstModel)
throws DataFormatException
srcModel - input chart data model.binCenters - the list of bins center values (return value).bins - the number of bins the data to divide to.dstModel - the resulting chart data model (return value).DataFormatException - if the input data are invalid.
public void getNormalDistributionModel(double from,
double to,
double step,
double mean,
double std,
double scale,
ChartDataModel dstModel)
from - interval startto - interval endstep - interval division stepmean - normal distribution meanstd - normal distribution standard deviationscale - scale parameter (multiplies the calculated distribution value by it)dstModel - data model to contain calculated values
protected void validateDataModel(ChartDataModel dataModel)
throws DataFormatException
validateDataModel in class ValuesCalculatordataModel - DataFormatException - when the data is invalid.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||