Cumulative Sum Control


Exclude a Sample from Subgroup Calculations

A sample can be excluded from subgroup calculations. The cumulative sum control of the .Net Analytics package is of the following type:

The series class of the cumulative sum chart is:

The subgroup class of a cumulative sum series is:

and the sample class is:

The following property is used for excluding a sample:

The first step is to include the necessary namespaces for the controls and add a new series.

Exclude a Sample from a Subgroup

Below, we will exclude a Cumulative Sum sample (named cssSample in the examples below), from a Cumulative Sum subgroup (named cssSubgroup in the examples below) of a Cumulative Sum series (named cssSeries in the examples below). The process is similar for the other charts listed above:

[Visual Basic]
' Exclude the sample
cssSample.ExcludeFromCalculation = True

' Another alternative is to exclude the ith (2 below) sample directly from the subgroup
cssSubgroup(2).ExcludeFromCalculation = True

' A third alternative is to exclude the ith (2 below) sample from the jth (1 below) subgroup of the series
cssSeries(1)(2).ExcludeFromCalculation =  True

[Visual C#]
// Exclude the sample
cssSample.ExcludeFromCalculation = true;

// Another alternative is to exclude the ith (2 below) sample directly from the subgroup
cssSubgroup[2].ExcludeFromCalculation = true;

// A third alternative is to exclude the ith (2 below) sample from the jth (1 below) subgroup of the series
cssSeries[1][2].ExcludeFromCalculation = true;