Represents a collection of observations in a VariableCollection.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public NotInheritable Class ObservationCollection _
	Implements IList, ICollection, IList(Of Observation), ICollection(Of Observation), IEnumerable(Of Observation), IEnumerable
C#
public sealed class ObservationCollection : IList, ICollection, IList<Observation>, ICollection<Observation>, IEnumerable<Observation>, IEnumerable
C++
public ref class ObservationCollection sealed : IList, ICollection, IList<Observation>, ICollection<Observation>, IEnumerable<Observation>, IEnumerable

Methods

IconTypeDescription
Clear()
Removes all observations from the collection.
CopyTo(Observation[](), Int32)
Copies the observations to the specified array.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetEnumerator()
Returns an IEnumerator for this ObservationCollection.
GetHashCode()
Serves as a hash function for a particular type.
GetType()
Gets the Type of the current instance.
Insert(Int32, Object[]())
Inserts an observation to the variable at the specified index.
MemberwiseClone()
Creates a shallow copy of the current Object.
RemoveAt(Int32)
Removes the observation at the specified index.
ToString()
Returns a String that represents the current Object.

Properties

IconTypeDescription
Count
Gets the number of observations in the collection.
IsFiltered
Gets a value that indicates if this collection represents filtered observations.
Item(Int32)
Gets the observation at the specified index.

Remarks

Use the ObservationCollection collection to access individual observations from a statistical data set that is represented as a VariableCollection. Where the VariableCollection class itself emphasizes access by column (variable), the ObservationCollection class emphasizes access by row (case or observation).

The elements of an ObservationCollection are Observation objects. An Observation contains the values of each variable in the VariableCollection for one case or observation in the data set.

Note that it is much more efficient to perform operations on variables as whole than to iterate through the ObservationCollection and access each observation individually.

Inheritance Hierarchy

System.Object
  Extreme.Statistics.ObservationCollection