Stats
Represents basic descriptive statistics calculated for a Column. See samples: https://public.datagrok.ai/js/samples/data-frame/stats
Constructors
new Stats()
new Stats(
dart
):Stats
Parameters
Parameter | Type |
---|---|
dart | any |
Returns
Source
Properties
Property | Modifier | Type |
---|---|---|
dart | private | any |
Accessors
avg
get
avg():number
Returns
number
- average
Source
kurt
get
kurt():number
Returns
number
- kurtosis
Source
max
get
max():number
Returns
number
- maximum
Source
med
get
med():number
Returns
number
- median value
Source
min
get
min():number
Returns
number
- minimum
Source
missingValueCount
get
missingValueCount():number
Number of missing (empty) values.
Returns
number
Source
q1
get
q1():number
Returns
number
- first quartile
Source
q2
get
q2():number
Returns
number
- second quartile
Source
q3
get
q3():number
Returns
number
- third quartile
Source
skew
get
skew():number
Returns
number
- skewness
Source
stdev
get
stdev():number
Returns
number
- standard deviation
Source
sum
get
sum():number
Returns
number
- sum
Source
totalCount
get
totalCount():number
Total number of values (including missing values).
Returns
number
Source
uniqueCount
get
uniqueCount():number
Number of unique values.
Returns
number
Source
valueCount
get
valueCount():number
Number of non-empty values.
Returns
number
Source
variance
get
variance():number
Returns
number
- variance
Source
Methods
corr()
corr(
otherColumn
):number
Pearson correlation
Parameters
Parameter | Type | Description |
---|---|---|
otherColumn | Column <any > |
Returns
number
Source
spearmanCorr()
spearmanCorr(
otherColumn
):number
Spearman correlation
Parameters
Parameter | Type | Description |
---|---|---|
otherColumn | Column <any > |
Returns
number
Source
toString()
toString():
string
Returns
string
Source
fromColumn()
static
fromColumn(col
,mask
):Stats
Calculates statistics for the specified column.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
col | Column <any > | undefined | |
mask | null | BitSet | null |
Returns
Source
fromValues()
static
fromValues(values
):Stats
Calculates statistics for the array of values.
Parameters
Parameter | Type |
---|---|
values | number [] | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array |
Returns
Source
histogramsByCategories()
static
histogramsByCategories(valueColumn
,catColumn
):Int32Array
[]
Returns distributions of [valueColumn] for each category in [catColumn].
Parameters
Parameter | Type |
---|---|
valueColumn | Column <any > |
catColumn | Column <any > |
Returns
Int32Array
[]