Package adams.data.spc
Class UChart
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,TechnicalInformationHandler,ControlChart,MatrixControlChart,Serializable
public class UChart extends AbstractControlChart implements MatrixControlChart
Generates data for a u chart.
For more information see:
QICacros. u Chart Formulas. URL http://www.qimacros.com/control-chart-formulas/u-chart-formula/.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-non-conform-index <adams.core.Index> (property: nonConformitiesIndex) The index of the matrix column containing the non-conformities. default: 1 example: An index is a number starting with 1; the following placeholders can be used as well: first, second, third, last_2, last_1, last
-sizes-index <adams.core.Index> (property: sizesIndex) The index of the matrix column containing the sample sizes. default: 2 example: An index is a number starting with 1; the following placeholders can be used as well: first, second, third, last_2, last_1, last
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Indexm_NonConformitiesIndexthe column in the matrix with the nonconformities.protected Indexm_SizesIndexthe column in the matrix with the sample sizes.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description UChart()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Limits>calculate(Number[][] data)Calculates the center/lower/upper limit.voiddefineOptions()Adds options to the internal list of options.StringgetName()Returns the chart name.IndexgetNonConformitiesIndex()Returns the matrix column index fot he nonconformities.protected Number[]getSamples(Number[][] data)Extracts the samples from the matrix (column 0).protected Number[]getSizes(Number[][] data)Extracts the nonconformities from the matrix (column 1).IndexgetSizesIndex()Returns the matrix column index fot he sizes.TechnicalInformationgetTechnicalInformation()Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.StringglobalInfo()Returns a string describing the object.StringnonConformitiesIndexTipText()Returns the tip text for this property.double[]prepare(Number[][] data)Prepares the data.voidsetNonConformitiesIndex(Index value)Sets the matrix column index for the nonconformities.voidsetSizesIndex(Index value)Sets the matrix column index for the sizes.StringsizesIndexTipText()Returns the tip text for this property.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getTechnicalInformation
public TechnicalInformation getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- Specified by:
getTechnicalInformationin interfaceTechnicalInformationHandler- Returns:
- the technical information about this class
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setNonConformitiesIndex
public void setNonConformitiesIndex(Index value)
Sets the matrix column index for the nonconformities.- Parameters:
value- the index
-
getNonConformitiesIndex
public Index getNonConformitiesIndex()
Returns the matrix column index fot he nonconformities.- Returns:
- the index
-
nonConformitiesIndexTipText
public String nonConformitiesIndexTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setSizesIndex
public void setSizesIndex(Index value)
Sets the matrix column index for the sizes.- Parameters:
value- the index
-
getSizesIndex
public Index getSizesIndex()
Returns the matrix column index fot he sizes.- Returns:
- the index
-
sizesIndexTipText
public String sizesIndexTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getName
public String getName()
Returns the chart name.- Specified by:
getNamein interfaceControlChart- Returns:
- the chart name
-
getSamples
protected Number[] getSamples(Number[][] data)
Extracts the samples from the matrix (column 0).- Parameters:
data- the matrix- Returns:
- the samples
-
getSizes
protected Number[] getSizes(Number[][] data)
Extracts the nonconformities from the matrix (column 1).- Parameters:
data- the matrix- Returns:
- the samples
-
calculate
public List<Limits> calculate(Number[][] data)
Calculates the center/lower/upper limit.- Specified by:
calculatein interfaceMatrixControlChart- Parameters:
data- the data to use for the calculation- Returns:
- the limits
-
prepare
public double[] prepare(Number[][] data)
Prepares the data.- Specified by:
preparein interfaceMatrixControlChart- Parameters:
data- the data to prepare- Returns:
- the processed data
-
-