Package adams.data.spc
Class CChart
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,TechnicalInformationHandler
,ControlChart
,ControlChartWithSampleSize
,IndividualsControlChart
,Serializable
public class CChart extends AbstractControlChartWithSampleSize implements IndividualsControlChart
Generates data for a c chart.
For more information see:
QICacros. c Chart Formulas. URL http://www.qimacros.com/control-chart-formulas/c-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. default: 100 minimum: 1
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
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 CChart()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Limits>
calculate(Number[] data)
Calculates the center/lower/upper limit.protected int
getDefaultSampleSize()
Returns the default sample size.String
getName()
Returns the chart name.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.String
globalInfo()
Returns a string describing the object.double[]
prepare(Number[] data)
Prepares the data.-
Methods inherited from class adams.data.spc.AbstractControlChartWithSampleSize
defineOptions, getDefaultSampleSizeLowerLimit, getDefaultSampleSizeUpperLimit, getSampleSize, sampleSizeTipText, 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, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in 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:
getTechnicalInformation
in interfaceTechnicalInformationHandler
- Returns:
- the technical information about this class
-
getDefaultSampleSize
protected int getDefaultSampleSize()
Returns the default sample size.- Specified by:
getDefaultSampleSize
in classAbstractControlChartWithSampleSize
- Returns:
- the default size
-
getName
public String getName()
Returns the chart name.- Specified by:
getName
in interfaceControlChart
- Specified by:
getName
in classAbstractControlChartWithSampleSize
- Returns:
- the chart name
-
calculate
public List<Limits> calculate(Number[] data)
Calculates the center/lower/upper limit.- Specified by:
calculate
in interfaceIndividualsControlChart
- Parameters:
data
- the data to use for the calculation- Returns:
- the limits
-
prepare
public double[] prepare(Number[] data)
Prepares the data.- Specified by:
prepare
in interfaceIndividualsControlChart
- Parameters:
data
- the data to prepare- Returns:
- the processed data
-
-