|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.chart.AbstractChartNode com.imsl.chart.ChartNode com.imsl.chart.Data com.imsl.chart.qc.ShewhartControlChart com.imsl.chart.qc.CuSumStatus
public class CuSumStatus
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 FormField Summary |
---|
Fields inherited from class com.imsl.chart.qc.ShewhartControlChart |
---|
d2, d3 |
Fields inherited from class com.imsl.chart.AbstractChartNode |
---|
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 Summary | |
---|---|
CuSumStatus(AxisXY axis,
double[] data,
double expectedMean,
double slackValue)
Creates a CuSumStatus chart. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.imsl.chart.qc.ShewhartControlChart |
---|
addCenterLine, addControlLimit, addLowerControlLimit, addUpperControlLimit, addWecoLimits, dataRange, getCenter, getCenterLine, getControlData, getLowerControlLimit, getMeanSampleSize, getSampleSize, getUpperControlLimit, paint, removeControlLimit, setCenter, setData, setData, setSampleSize, setSampleSize |
Methods inherited from class com.imsl.chart.Data |
---|
formatLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
prePaint
in class ChartNode
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.
|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |