|
|||||||||
| 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.ControlValuesCalculator
lt.monarch.chart.spc.math.SigmaValuesCalculator
public class SigmaValuesCalculator extends ControlValuesCalculator
Calculates values for s (Sigma) chart Values are calculated using formulas: http://www.singleton-labs.com/doc/mcharts/guide/#guide/chart-types/4.3.1.html
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Double |
histLcl
|
protected java.lang.Double |
histUcl
|
| Fields inherited from class lt.monarch.chart.spc.math.ValuesCalculator |
|---|
nullName |
| Constructor and Description |
|---|
SigmaValuesCalculator()
Constructs Sigma chart values calculator. |
SigmaValuesCalculator(java.lang.Double lcl,
java.lang.Double ucl)
Constructs Sigma chart values calculator. |
| Modifier and Type | Method and Description |
|---|---|
double |
averageSigma(ChartDataModel dataModel)
Calculates the average sigma value (the center line value for control chart) |
ChartDataModel |
getCenter(ChartDataModel dataModel)
Calculates the center line data model (usually the average of all data) |
void |
getCenter(ChartDataModel dataModel,
ChartDataModel dstModel)
Fill given data model with center line data. |
ChartDataModel |
getChartLine(ChartDataModel dataModel)
Calculates chart line data model (measurements, averages, standard deviation of sample of measurements, depending on the chart type). |
void |
getChartLine(ChartDataModel dataModel,
ChartDataModel dstModel)
Fill given data model (measurements, averages, standard deviation of sample of measurements, depending on the chart type). |
ChartDataModel |
getLCL(ChartDataModel dataModel)
Calculates chart lower control limit data model. |
void |
getLCL(ChartDataModel dataModel,
ChartDataModel dstModel)
Calculates chart lower control limit data and fills given data model. |
ChartDataModel |
getUCL(ChartDataModel dataModel)
Calculates chart upper control limit data model. |
void |
getUCL(ChartDataModel dataModel,
ChartDataModel dstModel)
Calculates chart upper control limit data and fills given data model. |
double |
sigmaX(ChartDataModel dataModel)
Calculates process sigma. |
double |
standardDeviation(java.util.List<java.lang.Object> values)
Calculates the standard deviation value of input data. |
protected void |
validateDataModel(ChartDataModel dataModel)
Validates data model. |
| Methods inherited from class lt.monarch.chart.spc.math.ControlValuesCalculator |
|---|
averageRange, getLabels, getN, getRange |
| 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 |
| Field Detail |
|---|
protected java.lang.Double histUcl
protected java.lang.Double histLcl
| Constructor Detail |
|---|
public SigmaValuesCalculator()
public SigmaValuesCalculator(java.lang.Double lcl,
java.lang.Double ucl)
lcl - lower control limitucl - upper control limit| Method Detail |
|---|
public ChartDataModel getCenter(ChartDataModel dataModel)
throws DataFormatException
ControlValuesCalculator
getCenter in class ControlValuesCalculatordataModel - input data.DataFormatException
public void getCenter(ChartDataModel dataModel,
ChartDataModel dstModel)
throws DataFormatException
ControlValuesCalculator
getCenter in class ControlValuesCalculatordataModel - input data model.dstModel - destination data modelDataFormatException - when the invalid data is found.
public ChartDataModel getChartLine(ChartDataModel dataModel)
throws DataFormatException
ControlValuesCalculator
getChartLine in class ControlValuesCalculatordataModel - input data model.DataFormatException - when the input data are invalid.
public void getChartLine(ChartDataModel dataModel,
ChartDataModel dstModel)
throws DataFormatException
ControlValuesCalculator
getChartLine in class ControlValuesCalculatordataModel - input data model.dstModel - destination data modelDataFormatException - when the invalid data is found.
public ChartDataModel getLCL(ChartDataModel dataModel)
throws DataFormatException
ControlValuesCalculator
getLCL in class ControlValuesCalculatordataModel - input data model.DataFormatException - when the input data are invalid.
public void getLCL(ChartDataModel dataModel,
ChartDataModel dstModel)
throws DataFormatException
ControlValuesCalculator
getLCL in class ControlValuesCalculatordataModel - input data model.dstModel - lower control limit destination data model.DataFormatException - when the input data are invalid.
public ChartDataModel getUCL(ChartDataModel dataModel)
throws DataFormatException
ControlValuesCalculator
getUCL in class ControlValuesCalculatordataModel - input data model.DataFormatException - when the input data are invalid.
public void getUCL(ChartDataModel dataModel,
ChartDataModel dstModel)
throws DataFormatException
ControlValuesCalculator
getUCL in class ControlValuesCalculatordataModel - input data model.dstModel - upper control limit destination data model.DataFormatException - when the input data are invalid.
public double averageSigma(ChartDataModel dataModel)
throws DataFormatException
dataModel - input data modelDataFormatException - when the invalid input data are provided
public double standardDeviation(java.util.List<java.lang.Object> values)
throws DataFormatException
values - list of numbersDataFormatException - then list is empty, or values list does not contain numbers.
public double sigmaX(ChartDataModel dataModel)
throws DataFormatException
sigmaX in class ControlValuesCalculatordataModel - input data model.DataFormatException - when the input data are invalid
protected void validateDataModel(ChartDataModel dataModel)
throws DataFormatException
ValuesCalculator
validateDataModel in class ValuesCalculatordataModel - input chart data model.DataFormatException - when the data is invalid.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||