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 Detail

      • m_NonConformitiesIndex

        protected Index m_NonConformitiesIndex
        the column in the matrix with the nonconformities.
      • m_SizesIndex

        protected Index m_SizesIndex
        the column in the matrix with the sample sizes.
    • Constructor Detail

      • UChart

        public UChart()
    • Method Detail

      • 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 interface TechnicalInformationHandler
        Returns:
        the technical information about this class
      • 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:
        getName in interface ControlChart
        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:
        calculate in interface MatrixControlChart
        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 interface MatrixControlChart
        Parameters:
        data - the data to prepare
        Returns:
        the processed data