public class CuSumStatus extends ShewhartControlChart
CuSumStatus
is a cumulative sum status chart.
CuSumStatus plots the tabular CuSum results.
The one-sided upper and lower cusums, and are computed. These are plotted as two bar charts. The are plotted as a bar chart above the x-axis and is below the axis. By default, in-control bars are green and out-of-control bars are red.
Control limit lines are drawn at ,
where h is the value of the getAbsoluteH
.
This can be set either to an absolute number, using setAbsoluteH
,
or relative to the standard deviation of the data, using setRelativeH
.
CuSum
,
Example,
Serialized Formd2, d3
AXIS_X_TOP, AXIS_Y_RIGHT, BAR_TYPE_HORIZONTAL, BAR_TYPE_VERTICAL, DASH_PATTERN_DASH, DASH_PATTERN_DASH_DOT, DASH_PATTERN_DOT, DASH_PATTERN_SOLID, DATA_TYPE_FILL, DATA_TYPE_LINE, DATA_TYPE_MARKER, DATA_TYPE_PICTURE, DATA_TYPE_TUBE, DENDROGRAM_TYPE_HORIZONTAL, DENDROGRAM_TYPE_VERTICAL, FILL_TYPE_GRADIENT, FILL_TYPE_NONE, FILL_TYPE_PAINT, FILL_TYPE_SOLID, LABEL_TYPE_PERCENT, MARKER_TYPE_ASTERISK, MARKER_TYPE_CIRCLE_CIRCLE, MARKER_TYPE_CIRCLE_PLUS, MARKER_TYPE_CIRCLE_X, MARKER_TYPE_DIAMOND_PLUS, MARKER_TYPE_FILLED_CIRCLE, MARKER_TYPE_FILLED_DIAMOND, MARKER_TYPE_FILLED_SQUARE, MARKER_TYPE_FILLED_TRIANGLE, MARKER_TYPE_HOLLOW_CIRCLE, MARKER_TYPE_HOLLOW_DIAMOND, MARKER_TYPE_HOLLOW_SQUARE, MARKER_TYPE_HOLLOW_TRIANGLE, MARKER_TYPE_OCTAGON_PLUS, MARKER_TYPE_OCTAGON_X, MARKER_TYPE_PLUS, MARKER_TYPE_SQUARE_PLUS, MARKER_TYPE_SQUARE_X, MARKER_TYPE_X, TEXT_X_CENTER, TEXT_X_LEFT, TEXT_X_RIGHT, TEXT_Y_BOTTOM, TEXT_Y_CENTER, TEXT_Y_TOP
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG
Constructor and Description |
---|
CuSumStatus(AxisXY axis,
double[] data,
double expectedMean,
double slackValue)
Creates a CuSumStatus chart.
|
Modifier and Type | Method and Description |
---|---|
Data |
addDataMarkers()
Adds the original data to the chart on a newly created axis.
|
Data |
addDataMarkers(AxisXY axisDataMarkers)
Adds the original data to the chart.
|
AxisXY |
createDataAxis()
Creates a new axis to hold a cummulative line.
|
double |
getAbsoluteH()
Returns the value for H used for setting limits.
|
Bar |
getBarMinus()
Returns the value of the attribute "BarMinus" containing the
bars.
|
Bar |
getBarPlus()
Returns the value of the attribute "BarPlus" containing the
bars.
|
double[] |
getCMinus()
Returns the values.
|
double[] |
getCPlus()
Returns the values.
|
Data |
getDataMarkers()
Returns the "DataMarkers" attribute containing the data markers.
|
AxisXY |
getDataMarkersAxis()
Returns the "DataMarkersAxis" attribute
containing the axis associated with the data markers.
|
double |
getExpectedMean()
Returns the expected (target) mean value.
|
double |
getInitialCMinus()
Returns the initial value of .
|
double |
getInitialCPlus()
Returns the initial value of .
|
int[] |
getNMinus()
Returns ,
the number of consecutive periods that the cusums
have been nonzero.
|
int[] |
getNPlus()
Returns ,
the number of consecutive periods that the cusums
have been nonzero.
|
double |
getRelativeH()
Returns the value for relative h.
|
double |
getSigma()
Returns the standard deviation of the data.
|
double |
getSlackValue()
Returns the slack value.
|
void |
prePaint()
Setup chart with current settings.
|
void |
print()
Prints the tabular CuSum results.
|
void |
setAbsoluteH(double H)
Sets the value for h used for setting limits.
|
void |
setExpectedMean(double expectedMean)
Sets the expected mean of all of the data from all of the samples.
|
void |
setInitialCMinus(double initialCMinus)
Sets the initial value of .
|
void |
setInitialCPlus(double initialCPlus)
Sets the initial value of .
|
void |
setRelativeH(double h)
Sets the value for relative h.
|
void |
setSigma(double sigma)
Sets the standard deviation of the data.
|
void |
setX(double[] x)
Sets the x-coordinates of the bars.
|
addCenterLine, addControlLimit, addLowerControlLimit, addUpperControlLimit, addWecoLimits, dataRange, getCenter, getCenterLine, getControlData, getLowerControlLimit, getMeanSampleSize, getSampleSize, getUpperControlLimit, paint, removeControlLimit, setCenter, setData, setData, setSampleSize, setSampleSize
formatLabel
addPickListener, firePickListeners, getALT, getAxis, getBackground, getBarGap, getBarType, getBarWidth, getChart, getChartTitle, getChildren, getClipData, getComponent, getConcatenatedViewport, getDataType, getDoubleBuffering, getExplode, getFillOutlineColor, getFillOutlineType, getFillPaint, getFillType, getGradient, getHREF, getLegend, getLineDashPattern, getMarkerDashPattern, getMarkerThickness, getMarkerType, getParent, getReference, getScreenAxis, getScreenSize, getScreenViewport, getSize, getSkipWeekends, getTextAngle, getTextColor, getTitle, getToolTip, getViewport, isBitSet, removePickListener, setALT, setBarGap, setBarType, setBarWidth, setChartTitle, setClipData, setCustomTransform, setDataType, setDoubleBuffering, setExplode, setFillOutlineColor, setFillOutlineColor, setFillOutlineType, setFillPaint, setFillPaint, setFillPaint, setFillType, setGradient, setGradient, setGradient, setHREF, setImage, setLineDashPattern, setMarkerDashPattern, setMarkerThickness, setMarkerType, setReference, setScreenSize, setSize, setSkipWeekends, setTextAngle, setTextColor, setTextColor, setTitle, setTitle, setToolTip, setViewport, setViewport
clone, clone, clone, clone, getAbstractParent, getAttribute, getAutoscaleInput, getAutoscaleMinimumTimeInterval, getAutoscaleOutput, getBooleanAttribute, getChildList, getColorAttribute, getCustomTransform, getDensity, getDoubleAttribute, getFillColor, getFont, getFontName, getFontSize, getFontStyle, getImage, getIntegerAttribute, getLabelType, getLightColor, getLineColor, getLineWidth, getLocale, getMarkerColor, getMarkerSize, getName, getNumber, getPaint, getStringAttribute, getTextFormat, getTickLength, getTransform, getX, getY, isAncestorOf, isAttributeSet, isAttributeSetAtThisNode, parseColor, remove, setAttribute, setAutoscaleInput, setAutoscaleMinimumTimeInterval, setAutoscaleOutput, setDensity, setFillColor, setFillColor, setFont, setFontName, setFontSize, setFontStyle, setImage, setLabelType, setLightColor, setLightColor, setLineColor, setLineColor, setLineWidth, setLocale, setMarkerColor, setMarkerColor, setMarkerSize, setName, setNumber, setPaint, setTextFormat, setTextFormat, setTickLength, setTransform, setX, setY, toString
public CuSumStatus(AxisXY axis, double[] data, double expectedMean, double slackValue)
axis
- the AxisXY
parent of this nodedata
- is an array of measurements of a continuous variable.expectedMean
- is the expected (or target) mean.slackValue
- is the slack value.
This is also called K, or the reference value or the allowance.public Data addDataMarkers()
Data
object containing the markers.public Data addDataMarkers(AxisXY axisDataMarkers)
axisDataMarkers
- is the axis for the data markers.Data
object containing the markers.public AxisXY createDataAxis()
public double getAbsoluteH()
public Bar getBarMinus()
getBarSet(0,0)
to the Bar
object returned by this method.
For the bars for where the process is not in control,
apply the method getBarSet(1,0)
to the Bar
object returned by this method.public Bar getBarPlus()
getBarSet(0,0)
to the Bar
object returned by this method.
For the bars for where the process is not in control,
apply the method getBarSet(1,0)
to the Bar
object returned by this method.public double[] getCMinus()
public double[] getCPlus()
public Data getDataMarkers()
Data
object.public AxisXY getDataMarkersAxis()
AxisXY
associated with the data markers.public double getExpectedMean()
public double getInitialCMinus()
public double getInitialCPlus()
public int[] getNMinus()
public int[] getNPlus()
public double getRelativeH()
public double getSigma()
double
containing the standard deviation.public double getSlackValue()
public void prePaint()
public void print()
public void setAbsoluteH(double H)
H
- the value for absolute H.public void setExpectedMean(double expectedMean)
ExpectedMean
attribute is either the expected mean value
or the target mean.
This defaults to the mean of the xbar
data given to the constructor.expectedMean
- is the expected mean of all of the data.public void setInitialCMinus(double initialCMinus)
initialCMinus
- is the initial value for .public void setInitialCPlus(double initialCPlus)
initialCPlus
- is the initial value for .public void setRelativeH(double h)
h
- the value for h.public void setSigma(double sigma)
sigma
- is the value to be used for the standard deviation.public void setX(double[] x)
setX
in class ShewhartControlChart
x
- is an array containing the x-coordinates.
Its length must equal the length of the data array used to construct this object.Copyright © 1970-2016 Rogue Wave Software
Built May 19 2016.