One Logo Pool Ball
TabularData · IOS API REFERENCE

AnyCategoricalSummary

struct · iOS 15.0+ · SDK 27.1

struct AnyCategoricalSummary

A type-erased categorical summary. Categorical summary includes 5 statistics: - someCount: The number of non-missing elements. - noneCount: The number of missing elements. - totalCount: The sum of missing and non-missing elements. - uniqueCount: The number of unique elements. - mode: The most common elements.

Members (11)

get · iOS 15.0+

totalCount

TypeScript
get totalCount(): number
Swift declaration
var totalCount: Int { get }

The total number of elements in the column.

get · iOS 15.0+

uniqueCount

TypeScript
get uniqueCount(): number
Swift declaration
var uniqueCount: Int

The number of unique elements.

set · iOS 15.0+

uniqueCount

TypeScript
set uniqueCount(value: number)
Swift declaration
var uniqueCount: Int

The number of unique elements.

get · iOS 15.0+

mode

TypeScript
get mode(): Array<unknown>
Swift declaration
var mode: [Any]

The most common values in a column. The summary orders the elements based on their original locations within the column.

set · iOS 15.0+

mode

TypeScript
set mode(value: Array<unknown>)
Swift declaration
var mode: [Any]

The most common values in a column. The summary orders the elements based on their original locations within the column.

get · iOS 15.0+

noneCount

TypeScript
get noneCount(): number
Swift declaration
var noneCount: Int

The number of missing elements in the column.

set · iOS 15.0+

noneCount

TypeScript
set noneCount(value: number)
Swift declaration
var noneCount: Int

The number of missing elements in the column.

get · iOS 15.0+

someCount

TypeScript
get someCount(): number
Swift declaration
var someCount: Int

The number of non-missing elements in the column.

set · iOS 15.0+

someCount

TypeScript
set someCount(value: number)
Swift declaration
var someCount: Int

The number of non-missing elements in the column.

init · iOS 15.0+

init

TypeScript
static init(summary: CategoricalSummary<unknown>): AnyCategoricalSummary
Swift declaration
init(_ summary: CategoricalSummary<AnyHashable>)

Creates a type-erased categorical summary from a typed categorical summary. - Parameters: - summary: A typed categorical summary.

init · iOS 15.0+

init

TypeScript
static init86069(summary: CategoricalSummary<number>): AnyCategoricalSummary
Swift declaration
init<T>(_ summary: CategoricalSummary<T>) where T : Hashable

Creates a type-erased categorical summary from a typed categorical summary. - Parameters: - summary: A typed categorical summary.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AnyCategoricalSummary.modeType

Passing a Swift type itself is not supported.

All TabularData types →