Package adams.data.spc
Class XBarRChart
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,TechnicalInformationHandler,ControlChart,ControlChartWithSampleSize,MatrixControlChart,SamplesControlChart,Serializable
public class XBarRChart extends AbstractControlChartWithSampleSize implements SamplesControlChart
Generates data for a XBar R chart.
For more information see:
QICacros. X bar R Chart Formulas. URL http://www.qimacros.com/control-chart-formulas/x-bar-r-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
-sample-size <int> (property: sampleSize) The sample size to use; use < 0 to automatically determine from data. default: -1 minimum: -1
-variation <boolean> (property: variation) If enabled, variation data instead of mean data is generated. default: false
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_Variationwhether to generate mean or variation data.-
Fields inherited from class adams.data.spc.AbstractControlChartWithSampleSize
m_SampleSize
-
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 XBarRChart()
-
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.protected intgetActualSampleSize(Number[][] data)Returns the actual sample size to use.protected intgetDefaultSampleSize()Returns the default sample size.protected NumbergetDefaultSampleSizeLowerLimit()Returns the default lower limit for the sample size.StringgetName()Returns the chart name.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.booleangetVariation()Returns whether to produce mean or variation data.StringglobalInfo()Returns a string describing the object.double[]prepare(Number[][] data)Prepares the data.StringsampleSizeTipText()Returns the tip text for this property.voidsetVariation(boolean value)Sets whether to produce mean or variation data.StringvariationTipText()Returns the tip text for this property.-
Methods inherited from class adams.data.spc.AbstractControlChartWithSampleSize
getDefaultSampleSizeUpperLimit, getSampleSize, setSampleSize
-
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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractControlChartWithSampleSize
-
getDefaultSampleSize
protected int getDefaultSampleSize()
Returns the default sample size.- Specified by:
getDefaultSampleSizein classAbstractControlChartWithSampleSize- Returns:
- the default size
-
getDefaultSampleSizeLowerLimit
protected Number getDefaultSampleSizeLowerLimit()
Returns the default lower limit for the sample size.- Overrides:
getDefaultSampleSizeLowerLimitin classAbstractControlChartWithSampleSize- Returns:
- the default lower limit
-
sampleSizeTipText
public String sampleSizeTipText()
Returns the tip text for this property.- Specified by:
sampleSizeTipTextin interfaceControlChartWithSampleSize- Overrides:
sampleSizeTipTextin classAbstractControlChartWithSampleSize- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setVariation
public void setVariation(boolean value)
Sets whether to produce mean or variation data.- Parameters:
value- true if to generate variation data
-
getVariation
public boolean getVariation()
Returns whether to produce mean or variation data.- Returns:
- true if to generate variation data
-
variationTipText
public String variationTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
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
-
getName
public String getName()
Returns the chart name.- Specified by:
getNamein interfaceControlChart- Specified by:
getNamein classAbstractControlChartWithSampleSize- Returns:
- the chart name
-
getActualSampleSize
protected int getActualSampleSize(Number[][] data)
Returns the actual sample size to use.- Parameters:
data- the data to base the calculation on- Returns:
- the actual sample size
-
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
-
-