天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
数组
>
数组操作
ElementWhere
复制链接
简述
根据布尔数组con,为True时从X中,为False时从Y中,取对应位置元素的值
如果只输入con, 则返回con数组中为真的下标
定义
ElementWhere(con:array;x:array;y:array):Array
参数
名称
类型
说明
Con
Array,TableArray
一维数字数组,数组内值为布尔型
X
Array,TableArray
一维数字数组,标量或与con等长的数组
Y
Array,TableArray
一维数字数组,标量或与con等长的数组
返回
Array,TableArray
根据con矩阵选出的X、Y矩阵对应值或con矩阵中为真的下标值
范例
con := array(1,0,1,1,1,0);
x := array(1,2,3,4,5,6);
y := array(11,12,13,14,15,16);
return ElementWhere(con,x,y);// array(1,12,3,4,5,16)
相关
OutPutTableToCanBeUnderstood
SeperateTable
Unitary
Reverse
DescartesJoin
TableVectorizeArray
AbnormalData
DataProcess_MF
ZValue
RPSValue
FilterOneDimEx2
GroupByFieldValue
WebFormatToRung
QKsplit_Trailing
QKsplit_ToDate
QKsplit_Resampling
Factorize
dumies_decode
SparseMatFill
ElementWhere
ArrayAddGap
GroupPercentrankIt
GroupRankIt
GroupTransformByFunc
FrameGetSubByReg
Histogram
Framedrop_duplicates
Field_ReSortCols
Framedrop_na
Framemerge
Frameqcut
Frameupdate
GroupZscoreIt
get_dummies
get_dummies2
framePivot_table
framecut
frameMelt
GroupDemeanIt
ArrDropDuplicate