@univerjs-pro/engine-formula v0.5.4
Class: ArrayValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:104
Extends
Constructors
new ArrayValueObject()
new ArrayValueObject(rawValue): ArrayValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:164
Parameters
Parameter | Type |
---|---|
rawValue | string | IArrayValueObject |
Returns
Overrides
Properties
Property | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|
pattern | string | '' | BaseValueObject .pattern | submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:18 |
Methods
abs()
abs(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1323
Returns
Overrides
acos()
acos(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1090
Returns
Overrides
acosh()
acosh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1099
Returns
Overrides
asin()
asin(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1126
Returns
Overrides
asinh()
asinh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1135
Returns
Overrides
atan()
atan(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1162
Returns
Overrides
atan2()
atan2(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1180
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
atan2Inverse()
atan2Inverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1184
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
atanh()
atanh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1171
Returns
Overrides
binarySearch()
binarySearch(
valueObject,
searchType,
matchType): undefined | number
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:710
Parameters
Parameter | Type | Default value |
---|---|---|
valueObject | BaseValueObject | undefined |
searchType | ArrayBinarySearchType | ArrayBinarySearchType.MIN |
matchType | ArrayOrderSearchType | ArrayOrderSearchType.MIN |
Returns
undefined
| number
cbrt()
cbrt(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1063
Returns
Overrides
ceil()
ceil(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1358
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
ceilInverse()
ceilInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1362
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
clone()
clone(): ArrayValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:186
Returns
compare()
compare(
valueObject,
operator,
isCaseSensitive?): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:980
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
operator | compareToken |
isCaseSensitive ? | boolean |
Returns
Overrides
compareBy()
compareBy(value, operator): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:244
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
operator | compareToken |
Returns
Inherited from
concatenate()
concatenate(value, concatenateType): string
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:249
Parameters
Parameter | Type | Default value |
---|---|---|
value | string | number | boolean | undefined |
concatenateType | ConcatenateType | ConcatenateType.FRONT |
Returns
string
Inherited from
concatenateBack()
concatenateBack(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:988
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateBack
concatenateFront()
concatenateFront(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:984
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
BaseValueObject
.concatenateFront
convertToBooleanObjectValue()
convertToBooleanObjectValue(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:462
Returns
Inherited from
BaseValueObject
.convertToBooleanObjectValue
convertToNumberObjectValue()
convertToNumberObjectValue(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:457
Returns
Inherited from
BaseValueObject
.convertToNumberObjectValue
cos()
cos(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1072
Returns
Overrides
cosh()
cosh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1081
Returns
Overrides
count()
count(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:901
Returns
Overrides
countA()
countA(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:914
Returns
Overrides
countBlank()
countBlank(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:927
Returns
Overrides
dispose()
dispose(): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:170
Returns
void
Overrides
divided()
divided(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:963
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
dividedBy()
dividedBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:234
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Inherited from
exp()
exp(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1314
Returns
Overrides
flatten()
flatten(): ArrayValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:431
Flatten a 2D array. https://numpy.org/doc/stable/reference/generated/numpy.chararray.flatten.html#numpy.chararray.flatten
Returns
flattenPosition()
flattenPosition(): {
numberArray: BaseValueObject[];
numberPosition: number[];
stringArray: BaseValueObject[];
stringPosition: number[];
}
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:459
Flatten a 2D array. In Excel, errors and blank cells are ignored, which results in a binary search that cannot strictly adhere to the number of cells.
Returns
{
numberArray: BaseValueObject[];
numberPosition: number[];
stringArray: BaseValueObject[];
stringPosition: number[];
}
Name | Type | Defined in |
---|---|---|
numberArray | BaseValueObject [] | submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:160 |
numberPosition | number [] | submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:161 |
stringArray | BaseValueObject [] | submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:158 |
stringPosition | number [] | submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:159 |
floor()
floor(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1345
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
floorInverse()
floorInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1349
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
get()
get(row, column): Nullable<BaseValueObject>
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:254
Parameters
Parameter | Type |
---|---|
row | number |
column | number |
Returns
getArrayValue()
getArrayValue(): Nullable<BaseValueObject>[][]
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:237
Returns
Nullable
<BaseValueObject
>[][]
Overrides
getColumnCount()
getColumnCount(): number
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:200
Returns
number
getCurrentColumn()
getCurrentColumn(): number
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:233
Returns
number
getCurrentRow()
getCurrentRow(): number
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:229
Returns
number
getFirstCell()
getFirstCell(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:374
Returns
getFirstTruePosition()
getFirstTruePosition(): Nullable<{
column: number;
row: number;
}>
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:357
Returns
Nullable
<{
column
: number
;
row
: number
;
}>
getLastCell()
getLastCell(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:379
Returns
getLastTruePosition()
getLastTruePosition(): Nullable<{
column: number;
row: number;
}>
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:340
Returns
Nullable
<{
column
: number
;
row
: number
;
}>
getNegative()
getNegative(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:938
Returns
Overrides
getPattern()
getPattern(): string
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:24
Returns
string
Inherited from
getRangePosition()
getRangePosition(): {
endColumn: number;
endRow: number;
startColumn: number;
startRow: number;
}
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:294
Returns
{
endColumn: number;
endRow: number;
startColumn: number;
startRow: number;
}
getRealValue()
getRealValue(row, column): null | BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:267
Parameters
Parameter | Type |
---|---|
row | number |
column | number |
Returns
null
| BaseValueObject
getReciprocal()
getReciprocal(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:943
Returns
Overrides
getRowCount()
getRowCount(): number
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:192
Returns
number
getSheetId()
getSheetId(): string
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:225
Returns
string
getUnitId()
getUnitId(): string
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:217
Returns
string
getValue()
getValue(): string | number | boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:57
Returns
string
| number
| boolean
Inherited from
getValueOrDefault()
getValueOrDefault(row, column): Nullable<BaseValueObject>
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:280
Parameters
Parameter | Type |
---|---|
row | number |
column | number |
Returns
isArray()
isArray(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:246
Returns
boolean
Overrides
isAsyncArrayObject()
isAsyncArrayObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:44
Returns
boolean
Inherited from
BaseValueObject
.isAsyncArrayObject
isAsyncObject()
isAsyncObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:40
Returns
boolean
Inherited from
isBoolean()
isBoolean(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:87
Returns
boolean
Inherited from
isCube()
isCube(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:75
Returns
boolean
Inherited from
isEqual()
isEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:185
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
isEqualType()
isEqualType(object): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:60
Parameters
Parameter | Type |
---|---|
object | ObjectClassType |
Returns
boolean
Inherited from
isError()
isError(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:95
Returns
boolean
Inherited from
isGreaterThan()
isGreaterThan(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:205
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
isGreaterThanOrEqual()
isGreaterThanOrEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:193
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isGreaterThanOrEqual
isLambda()
isLambda(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:91
Returns
boolean
Inherited from
isLessThan()
isLessThan(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:201
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
isLessThanOrEqual()
isLessThanOrEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:197
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
BaseValueObject
.isLessThanOrEqual
isNotEqual()
isNotEqual(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:189
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Inherited from
isNull()
isNull(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:99
Returns
boolean
Inherited from
isNumber()
isNumber(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:83
Returns
boolean
Inherited from
isReferenceObject()
isReferenceObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:48
Returns
boolean
Inherited from
BaseValueObject
.isReferenceObject
isString()
isString(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:79
Returns
boolean
Inherited from
isValueObject()
isValueObject(): boolean
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:40
Returns
boolean
Inherited from
iterator()
iterator(callback): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:308
Parameters
Parameter | Type |
---|---|
callback | (valueObject , rowIndex , columnIndex ) => Nullable <boolean > |
Returns
void
iteratorReverse()
iteratorReverse(callback): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:324
Parameters
Parameter | Type |
---|---|
callback | (valueObject , rowIndex , columnIndex ) => Nullable <boolean > |
Returns
void
log()
log(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1296
Returns
Overrides
log10()
log10(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1305
Returns
Overrides
map()
map(callbackFn): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:992
return every value in the array after the callback function, excluding the error value
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
Overrides
mapValue()
mapValue(callbackFn): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1007
return every value in the array after the callback function
Parameters
Parameter | Type |
---|---|
callbackFn | callbackMapFnType |
Returns
Overrides
max()
max(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:846
Returns
Overrides
mean()
mean(ddof): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1193
Calculate the mean of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.mean.html#numpy.mean
Parameters
Parameter | Type | Default value |
---|---|---|
ddof | number | 0 |
Returns
Overrides
median()
median(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1202
Calculate the median of the entire array.
reference https://numpy.org/doc/stable/reference/generated/numpy.median.html
Returns
Overrides
min()
min(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:873
Returns
Overrides
minus()
minus(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:955
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
minusBy()
minusBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:224
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Inherited from
mod()
mod(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:967
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
modInverse()
modInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:971
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
multiply()
multiply(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:959
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
multiplyBy()
multiplyBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:229
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Inherited from
orderSearch()
orderSearch(
valueObject,
searchType,
isDesc,
isFuzzyMatching):
| null
| void
| {
column: number;
row: number;
}
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:630
Due to the inability to effectively utilize the cache, the sequential matching approach is only used for special matches in XLOOKUP and XMATCH. For example, when match_mode is set to 1 and -1 for an exact match. If not found, it returns the next smaller item.
Parameters
Parameter | Type | Default value |
---|---|---|
valueObject | BaseValueObject | undefined |
searchType | ArrayOrderSearchType | ArrayOrderSearchType.MIN |
isDesc | boolean | false |
isFuzzyMatching | boolean | false |
Returns
| null
| void
| {
column
: number
;
row
: number
;
}
pick()
pick(takeArray): ArrayValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:391
Referring to matrix calculations, extract the matching values from a true/false matrix based on parameters and store them in a two-dimensional array. implement x[x<10] https://numpy.org/doc/stable/user/basics.indexing.html
Parameters
Parameter | Type |
---|---|
takeArray | ArrayValueObject |
Returns
pickRaw()
pickRaw(takeArray): Nullable<BaseValueObject>[][]
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:397
Parameters
Parameter | Type |
---|---|
takeArray | ArrayValueObject |
Returns
Nullable
<BaseValueObject
>[][]
plus()
plus(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:951
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
plusBy()
plusBy(value): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:219
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
Inherited from
pow()
pow(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1036
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
powInverse()
powInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1045
Parameters
Parameter | Type | Description |
---|---|---|
valueObject | BaseValueObject | In the case of an inverse, it is certainly not an array. |
Returns
Overrides
round()
round(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1332
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
roundInverse()
roundInverse(valueObject): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1336
Parameters
Parameter | Type |
---|---|
valueObject | BaseValueObject |
Returns
Overrides
set()
set(
row,
column,
value): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:284
Parameters
Parameter | Type |
---|---|
row | number |
column | number |
value | Nullable <BaseValueObject > |
Returns
void
setArrayValue()
setArrayValue(value): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:241
Parameters
Parameter | Type |
---|---|
value | BaseValueObject [][] |
Returns
void
Overrides
setColumnCount()
setColumnCount(columnCount): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:204
Parameters
Parameter | Type |
---|---|
columnCount | number |
Returns
void
setCurrent()
setCurrent(row, column): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:208
Parameters
Parameter | Type |
---|---|
row | number |
column | number |
Returns
void
setDefaultValue()
setDefaultValue(value): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:250
Parameters
Parameter | Type |
---|---|
value | Nullable <BaseValueObject > |
Returns
void
setPattern()
setPattern(pattern): void
Defined in: submodules/univer/packages/engine-formula/src/basics/object-class-type.ts:32
Only used in NumberValueObject
Parameters
Parameter | Type |
---|---|
pattern | string |
Returns
void
Inherited from
setRowCount()
setRowCount(rowCount): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:196
Parameters
Parameter | Type |
---|---|
rowCount | number |
Returns
void
setSheetId()
setSheetId(sheetId): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:221
Parameters
Parameter | Type |
---|---|
sheetId | string |
Returns
void
setUnitId()
setUnitId(unitId): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:213
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
setValue()
setValue(value): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:67
Parameters
Parameter | Type |
---|---|
value | string | number | boolean |
Returns
void
Inherited from
sin()
sin(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1108
Returns
Overrides
sinh()
sinh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1117
Returns
Overrides
slice()
slice(rowParam, columnParam): undefined | ArrayValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:510
I’m looking to perform slicing operations on 2D arrays, similar to the functionality provided by NumPy. https://numpy.org/doc/stable/user/basics.indexing.html
Parameters
Parameter | Type |
---|---|
rowParam | Nullable <Nullable <number >[]> |
columnParam | Nullable <Nullable <number >[]> |
Returns
undefined
| ArrayValueObject
Row Param
start:stop:step
Column Param
start:stop:step
sortByColumn()
sortByColumn(index): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:607
Parameters
Parameter | Type |
---|---|
index | number |
Returns
void
sortByRow()
sortByRow(index): void
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:596
Parameters
Parameter | Type |
---|---|
index | number |
Returns
void
sqrt()
sqrt(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1054
Returns
Overrides
std()
std(ddof): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1286
STDEV.P (STDEVP): ddof=0, ignore strings and booleans STDEV.S (STDEV): ddof=1, ignore strings and booleans
STDEVPA: ddof=0, STDEVA: ddof=1,
Parameters
Parameter | Type | Default value |
---|---|---|
ddof | number | 0 |
Returns
Overrides
sum()
sum(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:826
Returns
Overrides
tan()
tan(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1144
Returns
Overrides
tanh()
tanh(): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1153
Returns
Overrides
toUnitRange()
toUnitRange(): {
range: {
endColumn: number;
endRow: number;
startColumn: number;
startRow: number;
};
sheetId: string;
unitId: string;
}
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/base-value-object.ts:44
Returns
{
range: {
endColumn: number;
endRow: number;
startColumn: number;
startRow: number;
};
sheetId: string;
unitId: string;
}
Inherited from
toValue()
toValue(): (null | string | number | boolean)[][]
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1371
Returns
(null
| string
| number
| boolean
)[][]
transpose()
transpose(): ArrayValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:612
Returns
var()
var(ddof): BaseValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:1244
┌──────────────┬────────────────────────────────┬───────────────────┐ │ Function │ Ignore logical values and text │ Type │ ├──────────────┼────────────────────────────────┼───────────────────┤ │ VAR.S (VAR) │ TRUE │ sample │ │ VAR.P (VARP) │ TRUE │ entire population │ │ VARA │ FALSE │ sample │ │ VARPA │ FALSE │ entire population │ └──────────────┴────────────────────────────────┴───────────────────┘
for VARPA and VARA, strings and FALSE are counted as 0, TRUE is counted as 1 for VAR.S/VAR, or VAR.P/VARP, strings,TRUE and FALSE are ignored Since sum ignores strings and booleans, they are ignored here too, and VAR.S and VAR.P are used more
VAR.S assumes that its arguments are a sample of the population, like numpy.var(data, ddof=1) VAR.P assumes that its arguments are the entire population, like numpy.var(data, ddof=0) numpy.var uses ddof=0 (Delta Degrees of Freedom) by default, so we use ddof=0 here
Parameters
Parameter | Type | Default value |
---|---|---|
ddof | number | 0 |
Returns
Overrides
create()
static create(rawValue): ArrayValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:110
Create an array value object based on the string or IArrayValueObject data.
Parameters
Parameter | Type |
---|---|
rawValue | string | IArrayValueObject |
Returns
createByArray()
static createByArray(array): ArrayValueObject
Defined in: submodules/univer/packages/engine-formula/src/engine/value-object/array-value-object.ts:119
Create an array value object based on the array data.
Parameters
Parameter | Type |
---|---|
array | (null | string | number | boolean )[][] |