Public Member Functions | |
Group () | |
Constructs an empty Group. | |
Group (Int16 IDNumber) | |
Constructs an empty Group with a specified identification number. | |
Group (Int16 IDNumber, IList data) | |
Constructs a Group from a collection of data. | |
Group (Int16 IDNumber, IList data, bool fixedSize, bool readOnly) | |
Constructs a Group from a collection of data. The Group has a fixed size or is read-only. | |
Group (Group group) | |
Constructs a Group from an existing Group. | |
Group (Group group, bool fixedSize, bool readOnly) | |
Constructs a Group from an existing Group. The Group has a fixed size or is read-only. | |
Group (Int16 IDNumber, TextBox[] textBoxesArray, GroupValidatorDelegateClass groupValidator, Int32 index) | |
Constructs a Group from an array of TextBox objects. | |
void | Add (Object item) |
Adds an element to the end of the Group. | |
void | AddRange (IList data) |
Adds the elements of the specified collection to the Group. | |
Group | AsFixedSize () |
Returns a fixed-size Group wrapper for the current collection. | |
Group | AsReadOnly () |
Returns a read-only Group wrapper for the current collection. | |
void | Clear () |
Removes all members from the Group. | |
bool | Contains (object value) |
Determines whether an element is in the Group. | |
void | CopyTo (NUMBER[] DecimalArray) |
Copies the Group to a compatible one-dimensional array. | |
void | CopyTo (NUMBER[] DecimalArray, int index) |
Copies the Group to a compatible one-dimensional array, starting at the specified index of the target array. | |
void | CopyTo (Int32 groupIndex, NUMBER[] DecimalArray, int arrayIndex, Int32 count) |
Copies a range of elements from the Group to a compatible one-dimensional array, starting at the specified index of the target array. | |
int | IndexOf (NUMBER value) |
Searches for the specified value and returns the zero-based index of the first occurrence within the entire Group. | |
Int32 | IndexOf (NUMBER value, Int32 index) |
Searches for the specified value and returns the zero-based index of the first occurrence within the range of elements in the Group that extends from the specified index to the last element. | |
Int32 | IndexOf (NUMBER value, Int32 index, Int32 count) |
Searches for the specified value and returns the zero-based index of the first occurrence within the range of elements in the Group that starts at the specified index and contains the specified number of elements. | |
void | Insert (int index, NUMBER value) |
Inserts a member into the Group at the specified index. | |
bool | Remove (NUMBER value) |
Removes the first occurrence of a specific value from the Group. | |
void | RemoveAt (int index) |
Removes the element at the specified index of the Group. | |
NUMBER[] | ToArray () |
Constructs an array from a Group. | |
NUMBER | Average () |
Returns the average of the values in the Group. | |
Status | GroupStatus () |
Returns a Status object reflecting the state of the Group. | |
Int16 | IdentificationNumber () |
Returns the Group object’s identification number. | |
void | SetIndentificationNumber (Int16 value) |
Sets the Group object’s identification number. | |
bool | IsFixedSize () |
Returns a value indicating whether the Group has a fixed size. | |
bool | IsNull () |
Returns a value indicating whether the Group has a null value. | |
bool | IsReadOnly () |
Returns a value indicating whether the Group is read-only. | |
bool | IsValid () |
Returns a value indicating the Group is valid. | |
void | SetIsValid (bool value) |
Sets the flag reflecting the validity of the Group. | |
NUMBER | Maximum () |
Returns the maximum value in the Group. | |
NUMBER | Minimum () |
Returns the minimum value in the Group. | |
NUMBER | Mean () |
Returns the mean of the values in the Group. | |
NUMBER | Median () |
Returns the median of the values in the Group. | |
Int32 | n () |
Returns the number of elements actually contained in the Group. | |
Int16 | Number () |
Returns the Group object’s identification number. | |
NUMBER | PopulationStandardDeviation () |
Returns the population standard deviation of the values in the Group. | |
NUMBER | PopulationVariance () |
Returns the population variance of the values in the Group. | |
NUMBER | SampleStandardDeviation () |
Returns the sample standard deviation of the values in the Group. | |
NUMBER | SampleVariance () |
Returns the sample variance of the values in the Group. | |
NUMBER | StandardErrorOfMean () |
Returns the standard error of the mean for the Group. | |
NUMBER | Sum () |
Returns the sum of the numbers in the Group using Kahan Summation. | |
NUMBER | SumOfSquaredDeviates () |
Returns the sum of the squared deviates (SS) of the numbers in the Group. | |
NUMBER | SumOfSquares () |
Returns the sum of the squared values in the Group. | |
Protected Attributes | |
List< NUMBER > | dataList |
Contains the members of the Group. | |
Int16 | iIdentificationNumber |
The Group object’s identification number. | |
Properties | |
NUMBER | this [int index] [get, set] |
Returns or sets the value at the specified index. |
See Stanton A. Glantz, Primer of Biostatistics ch. 2 (6th ed. 2005); Jerrold H. Zar, Biostatistical Analysis chs. 3–4 (5th ed. 2010 [sic]).
Definition at line 72 of file Group.cs.
StephenAshley.Biostatistics.Group.Group | ( | ) |
StephenAshley.Biostatistics.Group.Group | ( | Int16 | IDNumber | ) |
StephenAshley.Biostatistics.Group.Group | ( | Int16 | IDNumber, | |
IList | data | |||
) |
Constructs a Group from a collection of data.
IDNumber | The Group object’s identification number. | |
data | The collection of data. |
BiostatisticsException | data is a null reference. |
StephenAshley.Biostatistics.Group.Group | ( | Int16 | IDNumber, | |
IList | data, | |||
bool | fixedSize, | |||
bool | readOnly | |||
) |
Constructs a Group from a collection of data. The Group has a fixed size or is read-only.
IDNumber | The Group objects’s identification number. | |
data | The collection of data. | |
fixedSize | A Boolean that signals whether a Group has a fixed size. | |
readOnly | A Boolean that signals whether a Group is read-only. |
BiostatisticsException | fixedSize is set to true but readOnly is set to false. |
StephenAshley.Biostatistics.Group.Group | ( | Group | group | ) |
StephenAshley.Biostatistics.Group.Group | ( | Group | group, | |
bool | fixedSize, | |||
bool | readOnly | |||
) |
StephenAshley.Biostatistics.Group.Group | ( | Int16 | IDNumber, | |
TextBox[] | textBoxesArray, | |||
GroupValidatorDelegateClass | groupValidator, | |||
Int32 | index | |||
) |
Constructs a Group from an array of TextBox objects.
IDNumber | The Group object’s identification number. | |
textBoxesArray | An array of TextBox objects. | |
groupValidator | A delegate for a method that validates a column of TextBox objects as a Group and reports on the state of the column. | |
index | The position of the column in the spreadsheet. |
BiostatisticsException | • textBoxesArray is a null reference, • groupValidator is a null reference, or • textBoxesArray contains a TextBox that does not represent a Decimal. |
void StephenAshley.Biostatistics.Group.Add | ( | Object | item | ) |
void StephenAshley.Biostatistics.Group.AddRange | ( | IList | data | ) |
Adds the elements of the specified collection to the Group.
data | The collection of data. |
BiostatisticsException | • sourceCollection contains a non-numeric element, • sourceCollection is a null reference, • an attempt is made to add an item to a read-only Group, of • an attempt is made to add an item to a full fixed-size Group. |
Group StephenAshley.Biostatistics.Group.AsFixedSize | ( | ) |
Group StephenAshley.Biostatistics.Group.AsReadOnly | ( | ) |
NUMBER StephenAshley.Biostatistics.Group.Average | ( | ) |
void StephenAshley.Biostatistics.Group.Clear | ( | ) |
bool StephenAshley.Biostatistics.Group.Contains | ( | object | value | ) |
void StephenAshley.Biostatistics.Group.CopyTo | ( | Int32 | groupIndex, | |
NUMBER[] | DecimalArray, | |||
int | arrayIndex, | |||
Int32 | count | |||
) |
Copies a range of elements from the Group to a compatible one-dimensional array, starting at the specified index of the target array.
groupIndex | The zero-based index in the Group at which copying begins. | |
DecimalArray | The one-dimensional array that is the destination of the elements copied from the Group. The array must have zero-based indexing. | |
arrayIndex | The zero-based index in DecimalArray at which copying begins. | |
count | The number of elements to copy. |
BiostatisticsException | • groupIndex is equal to or greater than n(), • arrayIndex is equal to or greater than the length of DecimalArray , • the number of elements from index to the end of the Group is greater than the available space from arrayIndex to the end of the destination array, • DecimalArray is a null reference, or • index is less than 0. |
void StephenAshley.Biostatistics.Group.CopyTo | ( | NUMBER[] | DecimalArray, | |
int | index | |||
) |
Copies the Group to a compatible one-dimensional array, starting at the specified index of the target array.
DecimalArray | The target array. | |
index | The starting index. |
BiostatisticsException | • the number of elements in the Group is greater than the number of elements that DecimalArray can contain. • DecimalArray is a null reference, or • index is less than 0. |
void StephenAshley.Biostatistics.Group.CopyTo | ( | NUMBER[] | DecimalArray | ) |
Copies the Group to a compatible one-dimensional array.
DecimalArray | The target array. |
BiostatisticsException | Thrown when |
• DecimalArray is a null reference.
Status StephenAshley.Biostatistics.Group.GroupStatus | ( | ) |
Int16 StephenAshley.Biostatistics.Group.IdentificationNumber | ( | ) |
Int32 StephenAshley.Biostatistics.Group.IndexOf | ( | NUMBER | value, | |
Int32 | index, | |||
Int32 | count | |||
) |
Searches for the specified value and returns the zero-based index of the first occurrence within the range of elements in the Group that starts at the specified index and contains the specified number of elements.
value | The value to locate in the Group. | |
index | The zero-based starting index of the search. | |
count | The number of elements in the section to search. |
BiostatisticsException | Thrown when |
• count is less than 0, or
• index and count do not specify a valid section in the Group.
Int32 StephenAshley.Biostatistics.Group.IndexOf | ( | NUMBER | value, | |
Int32 | index | |||
) |
Searches for the specified value and returns the zero-based index of the first occurrence within the range of elements in the Group that extends from the specified index to the last element.
value | The value to locate in the Group. | |
index | The zero-based starting index of the search. |
BiostatisticsException | index is outside the range of valid indexes for the Group. |
int StephenAshley.Biostatistics.Group.IndexOf | ( | NUMBER | value | ) |
void StephenAshley.Biostatistics.Group.Insert | ( | int | index, | |
NUMBER | value | |||
) |
Inserts a member into the Group at the specified index.
index | The zero-based index at which value should be inserted. | |
value | The value to insert. |
BiostatisticsException | • index is less than 0, or • index is greater than n(). |
bool StephenAshley.Biostatistics.Group.IsFixedSize | ( | ) |
bool StephenAshley.Biostatistics.Group.IsNull | ( | ) |
bool StephenAshley.Biostatistics.Group.IsReadOnly | ( | ) |
bool StephenAshley.Biostatistics.Group.IsValid | ( | ) |
NUMBER StephenAshley.Biostatistics.Group.Maximum | ( | ) |
Returns the maximum value in the Group.
BiostatisticsException | the Group contains no elements. |
NUMBER StephenAshley.Biostatistics.Group.Mean | ( | ) |
NUMBER StephenAshley.Biostatistics.Group.Median | ( | ) |
Returns the median of the values in the Group.
BiostatisticsException | the Group has no members. |
NUMBER StephenAshley.Biostatistics.Group.Minimum | ( | ) |
Returns the minimum value in the Group.
BiostatisticsException | the Group contains no elements. |
Int32 StephenAshley.Biostatistics.Group.n | ( | ) |
Int16 StephenAshley.Biostatistics.Group.Number | ( | ) |
NUMBER StephenAshley.Biostatistics.Group.PopulationStandardDeviation | ( | ) |
Returns the population standard deviation of the values in the Group.
BiostatisticsException | n() equals 0. |
NUMBER StephenAshley.Biostatistics.Group.PopulationVariance | ( | ) |
Returns the population variance of the values in the Group.
BiostatisticsException | n() equals 0. |
bool StephenAshley.Biostatistics.Group.Remove | ( | NUMBER | value | ) |
void StephenAshley.Biostatistics.Group.RemoveAt | ( | int | index | ) |
Removes the element at the specified index of the Group.
index | The zero-based index of the element to remove. |
BiostatisticsException | Parameter index is less than 0, or index is equal to or greater than Count. |
NUMBER StephenAshley.Biostatistics.Group.SampleStandardDeviation | ( | ) |
Returns the sample standard deviation of the values in the Group.
BiostatisticsException | n() equals 0 or 1. |
NUMBER StephenAshley.Biostatistics.Group.SampleVariance | ( | ) |
Returns the sample variance of the values in the Group.
BiostatisticsException | n() equals 0 or 1. |
void StephenAshley.Biostatistics.Group.SetIndentificationNumber | ( | Int16 | value | ) |
void StephenAshley.Biostatistics.Group.SetIsValid | ( | bool | value | ) |
NUMBER StephenAshley.Biostatistics.Group.StandardErrorOfMean | ( | ) |
Returns the standard error of the mean for the Group.
BiostatisticsException | n() is less than 1. |
NUMBER StephenAshley.Biostatistics.Group.Sum | ( | ) |
NUMBER StephenAshley.Biostatistics.Group.SumOfSquaredDeviates | ( | ) |
Returns the sum of the squared deviates (SS) of the numbers in the Group.
BiostatisticsException | Group contains no elements. |
NUMBER StephenAshley.Biostatistics.Group.SumOfSquares | ( | ) |
NUMBER [] StephenAshley.Biostatistics.Group.ToArray | ( | ) |
List<NUMBER> StephenAshley.Biostatistics.Group.dataList [protected] |
Int16 StephenAshley.Biostatistics.Group.iIdentificationNumber [protected] |
NUMBER StephenAshley.Biostatistics.Group.this[int index] [get, set] |
Returns or sets the value at the specified index.
index | The zero-based index of the element to get or set. |
ArgumentOutOfRangeException | Parameter index is less than 0, or index is equal to or greater than n(). |