mqr.spc.ShewhartParams.

statistic#

abstractmethod ShewhartParams.statistic(samples)#

Calculates the control statistic from samples.

Parameters:
samplespandas.DataFrame

Observations to be controlled. The index is a sample number, which some methods (eg. EWMA) depend on. The columns are dependent on the monitoring method, for example, they could be the observations in a fixed-size sample.

Returns:
ControlStatistic

Statistics and sample sizes for this method, based on samples. Has the same index as the argument samples.