Libraries.Compute.Statistics.Columns.NumberColumn Documentation

NumberColumn is a DataFrameColumn that contains Number objects. These objects can be undefined or not.

Inherits from: Libraries.Compute.Statistics.DataFrameColumn, Libraries.Language.Object

Summary

Actions Summary Table

ActionsDescription
Add(number value)add a missing val
Add(text value)
Calculate(Libraries.Compute.Statistics.DataFrameColumnCalculation calculation)This action conducts a calculation on this column.
CalculateValueCount()
CalculateValueCountAsText()This action returns a HashTable with AsText key values and counts of the items in the column.
CanConvertToVector()
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns an integer.
ConvertToBooleanColumn()Regardless of the type of this column, the system will attempt to convert it to a BooleanColumn.
ConvertToIntegerColumn()Regardless of the type of this column, the system will attempt to convert it to an IntegerColumn.
ConvertToNumberColumn()Regardless of the type of this column, the system will attempt to convert it to a NumberColumn.
ConvertToTextColumn()Regardless of the type of this column, the system will attempt to convert it to a TextColumn.
ConvertToVector()
Copy(integer rowStart, integer rowEnd, boolean sort, boolean unique)
Copy()
Copy(boolean sort, boolean unique)
Copy(integer rowStart, integer rowEnd)
CopyToRow(Libraries.Compute.Statistics.DataFrameColumn column, integer to, integer from)
Equals(Libraries.Language.Object object)This action determines if two objects are equal based on their hash code values.
Get(integer row)
GetAsBoolean(integer index)Regardless of the type of the column, this action attempts to convert the item at the index to a boolean.
GetAsInteger(integer index)
GetAsNumber(integer index)
GetAsText(integer index)
GetHashCode()This action gets the hash code for an object.
GetHeader()This gets the header for this column.
GetSize()
GetUndefinedSize()This action returns the number of items in this column that are undefined.
GetUndefinedText()This action returns a default text string for undefined values.
GetUnique()
IsBooleanColumn()This action detects whether this column ultimately stores booleans inside of it.
IsIntegerColumn()This action detects whether this column ultimately stores integers inside of it.
IsNumberColumn()
IsTextColumn()This action detects whether this column ultimately stores text inside of it.
IsUndefined(integer row)
Move(integer left, integer right)
SendValueTo(integer index, Libraries.Compute.Statistics.DataFrameColumnCalculation calculation)
SetAsBoolean(integer index, boolean value)This action sets the index to a boolean if and only if this is a boolean column.
SetAsInteger(integer index, integer value)
SetAsNumber(integer index, Libraries.Language.Types.Number value)
SetAsNumber(integer index, number value)
SetAsText(integer index, text value)This action sets the index to text if and only if this is a text column.
SetHeader(text header)This sets the header for this column.
SetSize(integer size)
Swap(integer left, integer right)
ToText()

Actions Documentation

Add(number value)

add a missing val

Parameters

Add(text value)

Parameters

Calculate(Libraries.Compute.Statistics.DataFrameColumnCalculation calculation)

This action conducts a calculation on this column. The calculation begins by issuing a Start action. Then if it is an iterable action, sends each data point to the class for processing. If not, it is asked to conduct the entire operation at once on the full data set. Finally, it issues an end action.

Parameters

CalculateValueCount()

Return

Libraries.Containers.HashTable

CalculateValueCountAsText()

This action returns a HashTable with AsText key values and counts of the items in the column.

Return

Libraries.Containers.HashTable: a HashTable with the count for each item in the column.

CanConvertToVector()

Return

boolean

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Example Code

Object o
        Object t
        integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

ConvertToBooleanColumn()

Regardless of the type of this column, the system will attempt to convert it to a BooleanColumn. This may cause an error to be thrown if the types are not compatible. Attrribute: Returns the newly converted column

Return

Libraries.Compute.Statistics.Columns.BooleanColumn:

ConvertToIntegerColumn()

Regardless of the type of this column, the system will attempt to convert it to an IntegerColumn. This may cause an error to be thrown if the types are not compatible. Attrribute: Returns the newly converted column

Return

Libraries.Compute.Statistics.Columns.IntegerColumn:

ConvertToNumberColumn()

Regardless of the type of this column, the system will attempt to convert it to a NumberColumn. This may cause an error to be thrown if the types are not compatible. Attrribute: Returns the newly converted column

Return

Libraries.Compute.Statistics.Columns.NumberColumn:

ConvertToTextColumn()

Regardless of the type of this column, the system will attempt to convert it to a TextColumn. This may cause an error to be thrown if the types are not compatible. Attrribute: Returns the newly converted column

Return

Libraries.Compute.Statistics.Columns.TextColumn:

ConvertToVector()

Return

Libraries.Compute.Vector

Copy(integer rowStart, integer rowEnd, boolean sort, boolean unique)

Parameters

Return

Libraries.Compute.Statistics.DataFrameColumn

Copy()

Return

Libraries.Compute.Statistics.DataFrameColumn

Copy(boolean sort, boolean unique)

Parameters

Return

Libraries.Compute.Statistics.DataFrameColumn

Copy(integer rowStart, integer rowEnd)

Parameters

Return

Libraries.Compute.Statistics.DataFrameColumn

CopyToRow(Libraries.Compute.Statistics.DataFrameColumn column, integer to, integer from)

Parameters

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Example Code

use Libraries.Language.Object
        use Libraries.Language.Types.Text
        Object o
        Text t
        boolean result = o:Equals(t)

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

Get(integer row)

Parameters

Return

Libraries.Language.Types.Number

GetAsBoolean(integer index)

Regardless of the type of the column, this action attempts to convert the item at the index to a boolean. Attrribute: Parameter index the item to be converted

Parameters

Return

boolean:

GetAsInteger(integer index)

Parameters

Return

integer

GetAsNumber(integer index)

Parameters

Return

number

GetAsText(integer index)

Parameters

Return

text

GetHashCode()

This action gets the hash code for an object.

Example Code

Object o
        integer hash = o:GetHashCode()

Return

integer: The integer hash code of the object.

GetHeader()

This gets the header for this column.

Return

text:

GetSize()

Return

integer

GetUndefinedSize()

This action returns the number of items in this column that are undefined.

Return

integer: the number of items that are not defined

GetUndefinedText()

This action returns a default text string for undefined values.

Return

text:

GetUnique()

Return

Libraries.Containers.Array

IsBooleanColumn()

This action detects whether this column ultimately stores booleans inside of it. This type of information is implementation dependent, as arbitrary columns can store these values however they see fit.

Return

boolean: true if this column stores booleans

IsIntegerColumn()

This action detects whether this column ultimately stores integers inside of it. This type of information is implementation dependent, as arbitrary columns can store these values however they see fit.

Return

boolean: true if this column stores integers

IsNumberColumn()

Return

boolean

IsTextColumn()

This action detects whether this column ultimately stores text inside of it. This type of information is implementation dependent, as arbitrary columns can store these values however they see fit.

Return

boolean: true if this column stores text

IsUndefined(integer row)

Parameters

Return

boolean

Move(integer left, integer right)

Parameters

SendValueTo(integer index, Libraries.Compute.Statistics.DataFrameColumnCalculation calculation)

Parameters

SetAsBoolean(integer index, boolean value)

This action sets the index to a boolean if and only if this is a boolean column. Attrribute: Parameter index the item to be converted

Parameters

SetAsInteger(integer index, integer value)

Parameters

SetAsNumber(integer index, Libraries.Language.Types.Number value)

Parameters

SetAsNumber(integer index, number value)

Parameters

SetAsText(integer index, text value)

This action sets the index to text if and only if this is a text column. Attrribute: Parameter index the item to be converted

Parameters

SetHeader(text header)

This sets the header for this column.

Parameters

SetSize(integer size)

Parameters

Swap(integer left, integer right)

Parameters

ToText()

Return

text