ColumnInput

Package: Libraries.Compute.Statistics.Inputs · Inherits from: Libraries.Language.Object

There are many ways in which a statistical test, transform, or calculation could potentially get data from a DataFrame. The Inputs package lists any of these ways. ColumnInput specifically is stating that a particular class expects the data in a data frame to be a set of entire columns. The values are listed as integers and this means the column indices inside the DataFrame. For example, a correlation might expect we are comparing columns 1 and 3 or perhaps 3 or more columns in their entirety. Anything that implements this class must be able to account for the full range of this input when it does its calculations.

Actions

AddColumn(integer column)

This action adds a value to the end of the input.

Parameters

  • column integer

EmptyColumns()

This action empty's the list, clearing out all of the items contained within it.

GetColumn(integer index)

This action gets the item at a given location in an array.

Parameters

  • index integer

Returns

integer: The item at the given location.

GetColumnIterator()

This action gets an iterator for the object and returns that iterator.

Returns

Libraries.Containers.Iterator<integer>: Returns the iterator for an object.

GetColumnSize()

This action gets the size of the array.

Returns

integer

IsEmptyColumns()

This action returns a boolean value, true if the container is empty and false if it contains any items.

Returns

boolean: Returns true when the container is empty and false when it is not.

RemoveColumn(integer column)

This action removes the first occurrence of an item that is found in the Addable object.

Parameters

  • column integer

Returns

boolean: Returns true if the item was removed and false if it was not removed.

RemoveColumnAt(integer index)

This action removes an item from an indexed object and returns that item.

Parameters

  • index integer

Inherited Actions

3 actions from Libraries.Language.Object