📝 docs(tsl): rebuild canonical syntax and routing manual

This commit is contained in:
csh
2026-04-22 16:59:20 +08:00
parent 3ed5052e61
commit 96b705b00b
83 changed files with 46446 additions and 323 deletions
+714
View File
@@ -0,0 +1,714 @@
# 基础函数
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:字符串、数组、日期时间、类型转换与常用基础能力
- 主题数:41
- 函数数:574
## 主题目录
### 数字
- `FloatN`
- `FloatToStrEx`
- `FormatFloatExt`
- `WebZero`
- `RoundTo5`
- `SimpleRoundTo2`
- `DivValue`
- `Dataisequal`
### 日期时间
- `ISO8601`
### 日期时间 / 常用日期时间函数
- `Time`
- `DecodeTime`
- `DayOfWeek`
- `EncodeTime`
- `Now`
- `DecodeDate`
- `Date`
- `TryEncodeDate`
- `TryEncodeTime`
- `DecodeDateFully`
- `EncodeDate`
- `TryStrToDate`
- `StrToDateTimeDef`
- `DateTimeToInternetStr`
- `IncAMonth`
- `StrToTime`
- `CurrentYear`
- `TryStrToTime`
- `StrToDate`
- `DateTimeGMTToHttpStr`
- `DateToStr`
- `StrToTimeDef`
- `DateTimeToStr`
- `DateTimeToString`
- `Strtodatetime2`
- `FormatDateTime`
- `DateTimeGMTToCookieStr`
- `StrToDateTime`
- `IsLeapYear`
- `GMTToLocalDateTime`
- `TimeToStr`
- `StrToDateDef`
- `TryStrToDateTime`
### 日期时间 / 简单转换函数
- `DateToInt`
- `IntToDate`
- `StrToDateExt`
- `ExcelIntToDate`
- `ExcelDateToInt`
- `FormatStrToDateTime2`
### 日期时间 / 普通日期函数
- `IsInLeapYear`
- `IsPM`
- `IsValidDate`
- `IsValidTime`
- `IsValidDateTime`
- `IsValidDateDay`
- `IsValidDateWeek`
- `IsValidDateMonthWeek`
- `WeeksInYear`
- `WeeksInAYear`
- `DaysInYear`
- `DaysInAYear`
- `DaysInMonth`
- `DaysInAMonth`
- `Today`
- `Yesterday`
- `Tomorrow`
- `IsToday`
- `IsSameDay`
### 日期时间 / 分解函数
- `DateOf`
- `TimeOf`
- `YearOf`
- `MonthOf`
- `DayOf`
- `HourOf`
- `MinuteOf`
- `SecondOf`
- `MilliSecondOf`
### 日期时间 / 起始结束函数
- `StartOfTheYear`
- `EndOfTheYear`
- `StartOfAYear`
- `EndOfAYear`
- `StartOfTheMonth`
- `EndOfTheMonth`
- `StartOfAMonth`
- `EndOfAMonth`
- `StartOfTheWeek`
- `EndOfTheWeek`
- `StartOfAWeek`
- `EndOfAWeek`
- `StartOfTheDay`
- `EndOfTheDay`
- `StartOfADay`
- `EndOfADay`
- `StartOfTheHalfYear`
- `StartOfTheQuarter`
- `EndOfTheQuarter`
- `EndOfTheHalfYear`
### 日期时间 / 关系函数
- `HourOfTheYear`
- `HourOfTheMonth`
- `MonthOfTheYear`
- `MilliSecondOfTheYear`
- `WeekOfTheYear`
- `WeekOfTheMonth`
- `MinuteOfTheYear`
- `SecondOfTheYear`
- `DayOfTheYear`
- `DayOfTheMonth`
- `SecondOfTheMinute`
- `HourOfTheWeek`
- `SecondOfTheMonth`
- `DayOfTheWeek`
- `MinuteOfTheDay`
- `MilliSecondOfTheSecond`
- `SecondOfTheWeek`
- `MinuteOfTheMonth`
- `MinuteOfTheHour`
- `MinuteOfTheWeek`
- `MilliSecondOfTheDay`
- `MilliSecondOfTheMonth`
- `HourOfTheDay`
- `MilliSecondOfTheHour`
- `SecondOfTheHour`
- `MilliSecondofTheMinute`
- `SecondOfTheDay`
- `MilliSecondOfTheWeek`
### 日期时间 / 范围判定函数
- `WithinPastYears`
- `WithinPastMonths`
- `WithinPastWeeks`
- `WithinPastDays`
- `WithinPastHours`
- `WithinPastMinutes`
- `WithinPastSeconds`
- `WithinPastMilliSeconds`
### 日期时间 / 范围获得函数
- `YearsBetween`
- `MonthsBetween`
- `WeeksBetween`
- `DaysBetween`
- `HoursBetween`
- `MinutesBetween`
- `SecondsBetween`
- `MilliSecondsBetween`
### 日期时间 / 范围生成函数
- `YearSpan`
- `MonthSpan`
- `WeekSpan`
- `DaySpan`
- `HourSpan`
- `MinuteSpan`
- `SecondSpan`
- `MilliSecondSpan`
### 日期时间 / 时间推移函数
- `IncYear`
- `IncHalfYear`
- `IncQuarter`
- `IncMonth`
- `IncWeek`
- `IncDay`
- `IncHour`
- `IncMinute`
- `IncSecond`
- `IncMilliSecond`
### 日期时间 / 组合、分解日期函数
- `EncodeDateTime`
- `DecodeDateTime`
- `EncodeDateWeek`
- `DecodeDateWeek`
- `DecodeDateDay`
- `EncodeDateMonthWeek`
- `DecodeDateMonthWeek`
- `TryEncodeDateTime`
- `TryEncodeDateWeek`
- `TryEncodeDateDay`
- `TryEncodeDateMonthWeek`
### 日期时间 / 日期重组函数
- `RecodeYear`
- `RecodeMonth`
- `RecodeDay`
- `RecodeHour`
- `RecodeMinute`
- `RecodeSecond`
- `RecodeMilliSecond`
- `RecodeDate`
- `RecodeTime`
- `RecodeDateTime`
- `TryRecodeDateTime`
- `CompareDateTime`
- `SameDateTime`
- `CompareDate`
- `SameDate`
- `CompareTime`
- `SameTime`
- `NthDayOfWeek`
- `DecodeDayOfWeekInMonth`
- `EncodeDayOfWeekInMonth`
- `TryEncodeDayOfWeekInMonth`
### 日期时间 / 日期格式的转换
- `DateTimeToJulianDate`
- `JulianDateToDateTime`
- `TryJulianDateToDateTime`
- `DateTimeToModifiedJulianDate`
- `ModifiedJulianDateToDateTime`
- `TryModifiedJulianDateToDateTime`
- `DateTimeToUnix`
- `UnixToDateTime`
- `FileDateToDateTime`
- `DateTimeToFileDate`
- `ExcelRDate`
### 日期时间 / 宽字节日期格式转换函数
- `DateTimeGMTToCookieStrw`
- `DateTimeGMTToHttpStrw`
- `DateTimeToInternetStrw`
- `Datetimetostrw`
- `TimetoStrw`
- `DateToStrw`
### 字符串 / 常用字符串函数
- `StrCmp`
- `Chr`
- `WideChr`
- `Str2Array`
- `Concat`
- `Array2Str`
- `Format`
- `Ord`
- `SetLength`
- `CompareText`
- `Copy`
- `UpperCase`
- `LeftBStr`
- `RightBStr`
- `MidBStr`
- `GetFormatLocalCode`
- `Str`
- `RightStr`
- `CompareStr`
- `LeftStr`
- `Trim`
- `SameText`
- `SetChar`
- `AppendStr`
- `GetChar`
- `LowerCase`
- `SetFormatLocalCode`
- `Val`
- `Pos`
- `TrimRight`
- `AnsiFormat`
- `TrimLeft`
- `StrToIntDef`
- `FormatFloat`
- `StrToCurrDef`
- `Booltostr2`
- `StrToFloatDef`
- `IntToHex`
- `TryStrToInt`
- `FloatToStr`
- `TryStrToFloat`
- `FormatCurr`
- `TryStrToCurr`
- `StrToInt`
- `BoolToStr`
- `CurrToStr`
- `TryStrToBool`
- `SpaceByNumber`
- `IsValidIdent`
- `StrToBool`
- `StrToFloat`
- `StrToBoolDef`
- `IntToStr`
- `StrToCurr`
- `AnsiStr2Array`
- `TryUppercase`
- `TryLowercase`
- `SysEncodecryptStr`
- `Letters`
- `DecToInt64`
- `DecToInt64def`
- `TryDecToInt64`
- `DecToInt32`
- `DecToInt32def`
- `TryDecToInt32`
- `StrToInt64`
- `StrToInt64Def`
- `TryStrToInt64`
- `StrToInt32`
- `StrToInt32Def`
- `TryStrToInt32`
- `DecToInt`
- `DecToIntDef`
- `TryDecToInt`
### 字符串 / 判定函数
- `AnsiContainsText`
- `AnsiStartsText`
- `AnsiEndsText`
- `AnsiMatchText`
- `AnsiContainsStr`
- `AnsiStartsStr`
- `AnsiEndsStr`
- `AnsiMatchStr`
- `FormatStrExt`
### 字符串 / 替换以及处理函数
- `StuffString`
- `AnsiReplaceText`
- `AnsiReplaceStr`
- `ReplaceText`
- `ReplaceStr`
- `WrapText`
- `AdjustLineBreaks`
- `ReverseString`
- `SeprateStrToTotal`
- `TotalStrToSeprate`
- `DateStrToArr`
- `RdateStrToArr`
### 字符串 / 字符串数组相关函数
- `AnsiIndexText`
- `AnsiIndexStr`
### 字符串 / 重复函数
- `DupeString`
### 字符串 / 多字节语言支持函数
- `LengthW`
- `MidStr`
### 字符串 / 字节函数
- `ContainsText`
- `StartsText`
- `EndsText`
- `ContainsStr`
- `StartsStr`
- `EndsStr`
- `StuffbString`
- `ReversebString`
### 字符串 / 发音相关函数
- `SoundEx`
- `SoundexInt`
- `DecodeSoundexInt`
- `SoundexWord`
- `DecodeSoundexWord`
- `SoundexSimilar`
- `SoundexCompare`
- `SoundexProc`
- `AnsiResemblesText`
### 字符串 / 正则表达式函数
- `ParseRegExpr`
- `GetLikeFlag`
- `SetLikeFlag`
- `ReplaceStrByReg`
- `ReplaceTextByReg`
- `ParseRegExpr3`
### 字符串 / 多语言支持函数
- `NextCharIndex`
- `AnsiToUTF8`
- `UTF8ToAnsi`
- `CharToByteIndex`
- `ByteToCharLen`
- `AnsiQuotedStr`
- `AnsiPos`
- `AnsiDequotedStr`
- `CharToByteLen`
- `CharLength`
- `ByteToCharIndex`
- `ByteType`
- `Booltostrw`
- `UnicodeESC`
- `unUnicodeESC2`
- `FloattoStrw`
- `UnicodeESC2`
- `unUnicodeESCw`
- `UnicodetoUTF8`
- `CurrtoStrw`
- `Inttostrw`
- `Booltostrw2`
- `Strw`
- `Inttohexw`
- `LCMapString`
- `MultibytetoUnicodew`
- `UTF8toUnicode`
- `Exportjsonstring`
- `unUnicodeESC2w`
- `unUnicodeESC`
- `Ifwstring`
- `Importjsonstring`
- `ExportJsonStringUTF8`
- `ExportJSONStringMBCS`
### 字符串 / 文件名以及目录名相关处理函数
- `ChangeFileExt`
- `ExtractFilePath`
- `ExtractFileDir`
- `ExtractFileDrive`
- `ExtractFileName`
- `ExtractFileExt`
- `ExtractRelativePath`
- `IsPathDelimiter`
- `IsDelimiter`
- `IncludeTrailingPathDelimiter`
- `IncludeTrailingBackslash`
- `ExcludeTrailingPathDelimiter`
- `ExcludeTrailingBackslash`
- `LastDelimiter`
- `AnsiCompareFileName`
- `SameFileName`
- `AnsiLowerCaseFileName`
- `AnsiUpperCaseFileName`
### 字符串 / 其它
- `GetPYStringList`
- `HztoPY`
- `DataUnitConversion`
### 数组 / 基本
- `FieldCount`
- `FieldExist`
- `FieldNames`
- `FieldName`
- `IsTable`
- `MagicSetArray`
- `NoRecordTable`
- `MagicGetArray`
- `RecordExist`
- `RecordExist2`
- `RecordExist3`
- `FieldNamesOfStrSubscript`
- `StrSubscriptTableToNormal`
- `FieldCountOfStrSubscript`
- `argmax`
- `Argmin`
- `PasswordGen`
### 数组 / 数组下标以及长度相关函数
- `GetStrIndexNum`
- `GetStrIndexs`
- `GetIntIndexs`
- `GetAllIndexs`
- `DeleteIndex`
- `DeleteField`
- `Length`
### 数组 / 排序函数
- `RankIt`
- `RankIt2`
- `RPSIt`
- `SortTableByFieldExt`
- `RankValue`
- `SortArray`
- `SortTableByField`
- `argsort`
### 数组 / 增删改查
- `AppendArray`
- `SeekPosInArray`
- `StockAmount`
- `DeleteNILValueByField`
- `FilterIn`
- `FilterNotIn`
- `IN1`
- `searchsorted`
- `argconfirst`
- `DeleteColumnByField`
- `Inserttablebyrno`
- `GetValuesByFieldValue`
- `Arrayextend`
- `Arrayinsert`
- `Frameinsert`
### 数组 / 数组操作
- `OutPutTableToCanBeUnderstood`
- `SeperateTable`
- `Unitary`
- `Reverse`
- `DescartesJoin`
- `TableVectorizeArray`
- `DataProcess_MF`
- `AbnormalData`
- `QKsplit_Trailing`
- `QKsplit_Resampling`
- `WebFormatToRung`
- `RPSValue`
- `ZValue`
- `QKsplit_ToDate`
- `GroupByFieldValue`
- `FilterOneDimEx2`
- `GroupRankIt`
- `ElementWhere`
- `Histogram`
- `FrameGetSubByReg`
- `Factorize`
- `GroupPercentrankIt`
- `SparseMatFill`
- `ArrayAddGap`
- `dumies_decode`
- `GroupTransformByFunc`
- `Framedrop_duplicates`
- `Field_ReSortCols`
- `Framedrop_na`
- `Framemerge`
- `Frameqcut`
- `Frameupdate`
- `GroupZscoreIt`
- `get_dummies`
- `get_dummies2`
- `framePivot_table`
- `framecut`
- `frameMelt`
- `GroupDemeanIt`
- `ArrDropDuplicate`
### 数组 / 数组取值
- `ColumnValue`
- `GetSubTableByField`
- `GetTopN`
- `FilterTableEx`
- `ColumnValue2`
- `GetBottomN`
- `FilterOneDimEx`
- `GetDistinctValue`
- `GetMiddleN`
- `FilterTable`
- `GetSubField`
- `GetSubTable`
- `Arraygetdefault`
- `Arraysetdefault`
- `Arraysetdefault2`
- `Randomchoice`
### 数组 / 集合运算
- `MergeArray`
- `FilterIntersectionPart`
- `FilterIntersectionPart2`
- `DistinctStr`
- `IntersectionPart`
- `QuickIntersectionPart`
- `Frameconcat`
### 数组 / 统计函数
- `GeoMeanByColumn`
- `SumValueByColumn`
- `AverageValueByColumn`
- `PercentValueByField`
- `MedianByColumn`
- `VarByColumn`
- `SumValueByColumn2`
- `SkewByColumn`
- `AveDevByColumn`
- `SumValueByRow2`
- `MaxValueByColumn`
- `DevsqByColumn`
- `KurtByColumn`
- `SumValueByRow`
- `HarMeanByColumn`
- `StatByColumn`
- `AverageByColumn`
- `StdevByColumn`
- `MinValueByColumn`
- `Describe`
- `Framecorrel`
- `Framecov`
- `Framehhi`
- `Framelag_zf`
- `Framepct_change`
- `Framevaluecounts`
- `Simpledescribe`
### 数组 / 重构函数
- `NormalTabletoStrSubscript`
- `RenameField`
- `Field_AddSuffix`
- `RenameFieldByFormat`
- `Field_AddPrefix`
- `ReIndex`
- `ReIndexCopy`
- `Reshape`
- `Frame_addprefix`
- `Frame_addsuffix`
### 数组 / 稀疏矩阵
- `Sparse1`
- `Sparse2`
- `Speye`
- `Sprand1`
- `Sprand2`
- `Sprandn1`
- `Sprandn2`
- `Sprandsym1`
- `Sprandsym2`
- `Sparsefull`
- `Spones`
- `Spnnz`
- `Spnonzeros`
- `Ifsparse`
- `Spdiags1`
- `Spdiags2`
- `Spdiags3`
- `Spdiags4`
### 数组 / 数据比较
- `TwoRDateCompare_M1`
- `CompareDataOfDifferentDataProvider`
### 数组 / 表格显示
- `Pivot`
- `Pivot_table`
- `Show3DTable`
- `Show2DTable`
- `ShowTableByField`
- `ShowTableByUnit`
- `ShowTableByInverse`
- `QuickRecordExist`
- `RotateTable`
- `NonIntersectionPart`
- `FooterValue`
- `FooterAverage`
- `FooterSum`
- `SetRowDefaultValue`
- `InverseTable`
- `GetSubTableByKey`
- `TableSelect`
- `TableType`
- `GetSubTableFreeParam`
- `ExpandTable`
### 数组 / 数组下标
- `frameIndex_filter`
- `frameIndex_getilocDZ`
+60
View File
@@ -0,0 +1,60 @@
# 客户端函数
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:客户端交互、界面控制与前端协作能力
- 主题数:8
- 函数数:19
## 主题目录
### 结果处理 / CallBack
- `DelPrecodeCallBack`
- `IncPrecodeCallBack`
### 结果处理 / 层次表格的展开
- `ExtractData`
- `ExtractDataEx`
- `ExtractDataEx2`
- `ExtractDataLocalRun2`
### 结果处理 / 简单统计
- `SimpleStat`
### 结果处理 / 品种管理
- `GetTypeOfStock`
### 错误处理
- `RaiseError`
- `ASSERT`
### 客户端行为控制函数
- `TSExpert_ClientConfig`
### 客户端行为控制函数 / 客户端行为控制函数简介
- `ChartColor`
- `ChartColorArray`
- `DisabledFuncTypeList`
- `DisabledSystemFuncList`
- `DisabledSysFuncList`
- `FuncTypeList`
- `AutoRun`
### 直接函数
- `SendRunningData`
+25
View File
@@ -0,0 +1,25 @@
# 压缩和解压函数
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:压缩、解压与归档能力
- 主题数:
- 函数数:5
## 主题目录
### 直接函数
- `ZipCompress`
- `ZipExtract`
- `RarExtract`
- `unicompress`
- `uniuncompress`
@@ -0,0 +1,33 @@
# 信息摘要及编码
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:哈希、摘要、编码与转换能力
- 主题数:3
- 函数数:7
## 主题目录
### 信息摘要函数
- `GetMsgDigest`
### BASE64编码
- `StrToBase64`
- `Base64ToStr`
### 进制编码函数
- `EncodeRadixstr`
- `DecodeRadixstr`
- `Decoderadixwstr`
- `Encoderadixwstr`
+53
View File
@@ -0,0 +1,53 @@
# 图形函数
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:图表、绘图与可视化相关函数
- 主题数:3
- 函数数:27
## 主题目录
### 作图函数
- `Graph`
- `GraphGroup`
- `MergeGraph`
- `EncodeGraphGroup`
- `DecodeGraphGroup`
- `DecodeGraph`
- `EncodeGraph`
- `FastLine_Web`
- `GetColorByIndex`
### 图形字段函数
- `gfColor`
- `gfFill`
- `gfFlag`
- `gfZero`
- `gfMaxValue`
- `gfMinValue`
- `gfLTP`
- `gfTitleCaption`
- `gfLeftTitleCaption`
- `gfCoordinate`
### 图形填充设置函数
- `flSolid`
- `flClear`
- `flHorizontal`
- `flVertical`
- `flFDiagonal`
- `flBDiagonal`
- `flCross`
- `flDiagCross`
+30
View File
@@ -0,0 +1,30 @@
# Function Catalog
这里是 canonical 函数目录。它只回答“函数在哪个模块里”,不承担基础语法教学。
## 使用顺序
1. 不知道函数在哪个模块,先看下面的模块目录。
2. 进入模块页后,在页内搜索具体函数名。
3. 如果问题是语法怎么写,回到 [../../syntax/index.md](../../syntax/index.md)。
4. 如果问题是金融场景如何组织,回到 [../../finance/index.md](../../finance/index.md)。
## 模块目录
| 模块 | 分类页 | 范围 | 函数数 |
| --- | --- | --- | --- |
| 基础函数 | [base.md](base.md) | 字符串、数组、日期时间、类型转换与常用基础能力 | 574 |
| 数学函数 | [math.md](math.md) | 数值计算、统计分析、矩阵处理与数学算法 | 518 |
| 系统相关函数 | [system.md](system.md) | 数据类型、表达式调用、性能与运行时能力 | 57 |
| 资源访问函数 | [resource.md](resource.md) | 文件、数据库、网络与外部资源访问 | 136 |
| 平台函数 | [platform.md](platform.md) | 平台相关功能与系统接口 | 19 |
| 客户端函数 | [client.md](client.md) | 客户端交互、界面控制与前端协作能力 | 19 |
| 图形函数 | [graphics.md](graphics.md) | 图表、绘图与可视化相关函数 | 27 |
| 压缩和解压函数 | [compression.md](compression.md) | 压缩、解压与归档能力 | 5 |
| 信息摘要及编码 | [digest_encoding.md](digest_encoding.md) | 哈希、摘要、编码与转换能力 | 7 |
| 第三方交互函数 | [third_party.md](third_party.md) | 第三方库与外部程序交互能力 | 8 |
## 说明
- 这套目录页由仓库内的函数语料自动整理生成。
- 当前目标是先提供稳定检索层,再逐步补全更细的 canonical 说明。
+655
View File
@@ -0,0 +1,655 @@
# 数学函数
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:数值计算、统计分析、矩阵处理与数学算法
- 主题数:40
- 函数数:518
## 主题目录
### 数值计算 / 数值微积分
- `ig_Romberg`
- `integral`
- `ig_Trapezoid_1`
- `ig_Trapezoid_2`
- `ig_Simpson_1`
- `ig_Gauss`
- `ig_Chebyshev`
- `ig_Simpson_2`
- `sf_SinX`
- `sf_CosX`
- `sf_eX`
- `sf_EllipseX_1`
- `sf_EllipseX_2`
- `Conv`
- `Hessian`
### 数值计算 / 线性方程组的求解
- `se_Gauss`
- `se_Gauss_Jordan`
- `se_Ldl`
- `se_Cholesky`
- `se_Gauss_Seidel`
### 数值计算 / 插值
- `interp`
- `interp_unit`
- `ip_Lagrangian_A`
- `ip_Lagrangian_B`
- `ip_Parabola_A`
- `ip_Parabola_B`
- `ip_Hermite_A`
- `ip_Hermite_B`
- `ip_Aitken_A`
- `ip_Aitken_B`
- `ip_Spline_A`
- `ip_Spline_B`
- `ip_Spline_C`
- `ip_SLQ`
- `ip_SLG`
### 数值计算 / 矩阵运算及分解
- `mt_Transposition`
- `mt_Multiplication`
- `mt_Addition`
- `mt_iv_Gauss_Jordan`
- `mt_iv_Ldl`
- `mt_Subtraction`
- `Mt_decompose_lu`
- `mt_decompose_qr`
- `mt_decompose_chol`
- `chol`
- `mt_va_Gauss_Jordan`
- `mt_decompose_svd`
- `mt_decompose_ldl`
- `mt_decompose_eig`
- `Standarize_II`
- `ReIndex2`
- `Det`
- `isSymmetry`
- `Orth`
- `roots`
- `Eigen`
- `pinv`
- `norm2`
- `Cond`
- `diag`
- `isDefinite`
### 数值计算 / 数组扩展
- `Any`
- `ALL`
### 数值计算 / 其他
- `perms`
- `nchoosek`
- `MaxDrawDown`
- `MinRecoveryTime`
- `Betainc`
- `PercentileOfScore`
- `GenerateCombinations`
- `Percentage`
### 常用数学函数
- `Pi`
- `Odd`
- `Abs`
- `Sqr`
- `Sqrt`
- `DivMod`
- `Frexp`
- `Ldexp`
- `Poly`
### 三角函数
- `Sin`
- `Cos`
- `SinCos`
- `Tan`
- `Cot`
- `CoTan`
- `Sec`
- `Csc`
- `Secant`
- `Cosecant`
- `ArcSin`
- `ArcCos`
- `ArcTan`
- `ArcTan2`
- `ArcCot`
- `ArcSec`
- `ArcCsc`
- `Hypot`
### 角度量转换
- `RadToDeg`
- `RadToGrad`
- `RadToCycle`
- `DegToRad`
- `DegToGrad`
- `DegToCycle`
- `GradToRad`
- `GradToDeg`
- `GradToCycle`
- `CycleToRad`
- `CycleToDeg`
- `CycleToGrad`
### 双曲线函数
- `Sinh`
- `Cosh`
- `Tanh`
- `CotH`
- `SecH`
- `CscH`
- `ArcCosh`
- `ArcSinh`
- `ArcTanh`
- `ArcCotH`
- `ArcSecH`
- `ArcCscH`
### 指数对数函数
- `Ln`
- `LnXP1`
- `Log10`
- `Log2`
- `LogN`
- `Exp`
- `IntPower`
- `Power`
### 精度设置及取整运算
- `Int`
- `Ceil`
- `Ceil32`
- `Ceil64`
- `Floor`
- `Floor32`
- `Floor64`
- `Trunc`
- `Trunc32`
- `Trunc64`
- `Frac`
- `Round`
- `Round32`
- `Round64`
- `SimpleRound`
- `SimpleRound32`
- `SimpleRound64`
- `RoundTo`
- `SimpleRoundTo`
### 比较判断函数
- `IsNan`
- `IsInfinite`
- `Sign`
- `IsZero`
- `Min`
- `Max`
- `CompareValue`
- `SameValue`
- `RandomRange`
- `InRange`
- `EnsureRange`
### 一般统计量
- `MinIntValue`
- `SumOfSquares`
- `StdDev`
- `Mean`
- `Sum`
- `MaxValue`
- `MinValue`
- `Norm`
- `SumsAndSquares`
- `MaxIntValue`
- `SumInt`
- `Harmean`
- `Variance`
- `MeanAndStdDev`
- `AveDev`
- `Skewness`
- `TotalVariance`
- `Product`
- `PopnStdDev`
- `kurtosis2`
- `Median`
- `skewness2`
- `Kurtosis`
- `Mode`
- `RandG`
- `Geomean`
- `PopnVariance`
- `MomentSkewKurtosis`
- `DevSq`
- `randomfrom`
### 次序统计量
- `Large`
- `Small`
- `Percentile`
- `Percentrank`
- `Quartile`
- `Rank`
- `Trimmean`
- `Frequency`
### 统计函数
- `Cov`
- `Correl`
- `Slope`
- `Intercept`
- `Rsq`
- `Steyx`
- `Slopeandintercept`
- `VariationCoefficient`
- `Skew`
- `SelfStddev`
- `RegressionChannel`
- `Kurt`
- `MeanAndPopnStdDevWithRate`
- `BetaAndAlpha`
- `correlpaired`
- `correlpaired_side`
### 统计函数 / 扩充统计
- `Expanding_Unit`
### 统计函数 / 含NAN统计
- `NanMean`
- `NanSum`
- `NanStd`
- `NanVariance`
- `NanPopnStd`
- `NanPopnVariance`
- `NanRankArr`
- `NanPercentRankArr`
### 统计分布
- `Gammaln`
- `Hist`
- `sf_Error`
- `erfc`
- `sf_Gamma`
- `erf`
- `erfcinv`
- `sf_Beta`
- `sf_IntegerBessel_1`
- `sf_IncompleteGamma`
- `Gamma`
- `erfinv`
- `Randnorm`
- `sf_F`
- `sf_geopdf`
- `sf_RealBessel_1`
- `sf_unidcdf`
- `sf_normpdf`
- `sf_geoinv`
- `sf_unidpdf`
- `sf_IncompleteBeta`
- `sf_normalinv2`
- `sf_norminv`
- `Randunid`
- `sf_Normal`
- `sf_unidinv`
- `sf_X2`
- `sf_IntegerBessel_2`
- `sf_normcdf`
- `sf_t`
- `sf_geocdf`
- `Randgeo`
- `sf_normalinv`
- `Normfit`
- `sf_RealBessel_2`
- `sf_hygeinv`
- `poissfit`
- `sf_binocdf`
- `Randhyge`
- `sf_poissinv`
- `sf_poisscdf`
- `sf_nbininv`
- `binofit`
- `sf_hygepdf`
- `sf_unifcdf`
- `sf_exppdf`
- `sf_binoinv`
- `uniffit`
- `sf_nbinpdf`
- `Randnbin`
- `Randpoiss`
- `sf_hygecdf`
- `sf_poisspdf`
- `Randbino`
- `Randunif`
- `sf_unifinv`
- `sf_binopdf`
- `sf_nbincdf`
- `sf_unifpdf`
- `sf_tcdf`
- `sf_fpdf`
- `sf_tinv`
- `expfit`
- `Randgam`
- `sf_ch2inv`
- `sf_ch2cdf`
- `sf_finv1`
- `Randt`
- `sf_expcdf`
- `sf_finv`
- `sf_gamcdf`
- `sf_tpdf`
- `sf_x2inv`
- `sf_gampdf`
- `sf_gammainv`
- `sf_fcdf`
- `sf_ch2pdf`
- `Randf`
- `Randexp`
- `Randch2`
- `sf_gaminv`
- `sf_expinv`
- `sf_betapdf`
- `sf_tinv1`
- `RandCauchy`
- `sf_Laplacecdf`
- `Randbeta`
- `sf_Cauchypdf`
- `sf_logninv`
- `sf_Laplaceinv`
- `sf_betacdf`
- `sf_raylinv`
- `sf_wblcdf`
- `sf_lognpdf`
- `sf_Cauchycdf`
- `Randlogn`
- `Randrayl`
- `sf_Laplacepdf`
- `sf_raylpdf`
- `sf_wblinv`
- `sf_logncdf`
- `sf_Cauchyinv`
- `sf_raylcdf`
- `Randwbl`
- `sf_betainv`
- `RandLaplace`
- `sf_wblpdf`
- `sf_betainv1`
- `sf_mvtcdf`
- `Mvtcdfqmc`
- `sf_mvncdf`
- `sf_copulacdf`
- `sf_copulafit`
- `RandCopula`
- `sf_exp`
- `Norminv`
### 统计推断
- `Estimate_SNU`
- `Estimate_TNU`
- `Estimate_TND`
- `Estimate_SP`
- `Estimate_TP`
- `Hypoth_TailRes`
- `NormPlot`
- `Hypoth_Kstest`
- `Hypoth_lillietest`
- `Hypoth_IndepTest`
- `Hypoth_KruskalWallis`
- `Hypoth_SNUTest`
- `Hypoth_TNUTest`
- `Hypoth_SNDTest`
- `Hypoth_TNDTest`
- `Hypoth_LSUTest`
- `Anova_Single`
- `Anova_Twice`
- `Anova_Bartlett`
- `Anova_Levene`
### 统计推断 / 假设检验
- `Hypoth_SignTest`
- `Hypoth_WilcoxonTest`
- `Hypoth_McNemarTest`
### 统计推断 / 配对检验
- `Hypoth_PNUTest`
### 多元统计分析
- `Corr`
- `CorrelationMatrix`
- `Covariance`
- `Corrcoef`
- `Corr_partial`
- `Distance`
- `Cluster_Kmeans`
- `Cluster_System`
- `Cluster_ward`
- `Discrim`
- `princomp`
- `Factor`
- `corr_canonical`
- `corr_Spearman`
- `Cov2CorrMatrix`
- `CorrMatrixAdjust`
- `corr_Kendall`
- `HISTC`
### 多元统计分析 / 相对重要性
- `Regress_domin_formula`
- `Regress_domin_marginal`
### 回归 / 回归检验
- `Regress_Ridge`
- `Regress_AdjustedR2`
- `Regress_Logistic`
- `Regression`
- `Regress_DWTest`
- `Regress_Stepwise`
- `Regress_Constraint`
- `Regress_White`
- `Regress_MLS`
- `Regress_CMLS`
- `Regress_JBTest`
- `Regress_pri`
- `Regress_FTest`
- `Regression_WLS`
- `Regress_Binary`
- `Regress_TTest`
- `Regress_NLM`
- `Regress_WLS`
- `Regress_AicAndSbic`
- `Regress_RSquare`
- `Regress_QRlsq`
- `boxcox`
- `Regress_HettestSpearman`
- `Regress_VIF`
- `Regress_TTest_RWLS`
- `Regress_TTest_White`
- `Regress_TTest_NW`
- `Regression_OLS_White`
- `Regression_OLS_NW`
- `NW_Adjustment_Simplification`
- `Robustfit_M`
- `Regress_GRStest`
### 回归 / 回归公用函数
- `LeastSquares_CurveFitting`
### 灰色系统
- `GM_Initial`
- `GM_Corr`
- `GM_AGO`
- `GM_Icorr`
- `GM_Scorr`
### 主成分分析
- `PrincaipalComponentAnalysis`
### 主成分分析 / 中间函数
- `Mbbub`
- `ComponentScoreMatrix`
- `FactorScoreMatrix`
- `ComponentMatrix`
- `RotatedComponentMatrix`
- `Eigen_Jacobi`
- `GetEigenValue`
- `FScoreResult`
### 时间序列分析
- `Time_Diff`
- `Time_AutoCov`
- `Time_ACF`
- `Time_PACF`
- `Time_RandomTest`
- `Time_DanielTest`
- `AR`
- `ARMA`
- `Time_ARCH`
- `Time_GARCH`
- `Times_ADFTest`
- `Times_Cointergration_test`
- `Times_ECM`
- `Times_Granger`
- `Time_ARp`
- `Time_MAq`
- `Time_ARMA`
- `Time_GreenFun`
- `Time_InvFun`
- `Time_Analyse`
- `Time_ChoseP`
- `Times_Cointergration`
- `GM_Estimate`
- `Time_ARCHTest`
- `GarchFit`
- `Times_johansen`
- `Times_GrangerCausality`
### 时间序列分析 / 因果推断
- `Time_VolatilitySpillover`
### 优化
- `NonLP_Hooke_Jeeves`
- `Prog_L`
- `NonLP_minPS`
- `NonLP_Fibonacci`
- `NonLP_Range`
- `Fmin`
- `NonLP_BSearch`
- `Prog_M`
- `NonLP_minFactor`
- `NonLP_GP`
- `NonLP_Fminsearch`
- `NonLP_Fmincon`
- `NonLP_minSUMT`
- `Prog_Q`
- `Prog_N`
- `NonLP_Nelder`
- `NonLP_Fminbnd`
- `NonLP_Golden`
- `TSOptimizer`
- `Quadprog`
- `LinearProgramming`
- `NonLP_Rosenbrock`
- `QuadLagR`
- `OZProg`
- `QuadTrackRoute`
- `IntLinProg`
### 优化 / 有约束优化算法
- `SUMT_Method`
### 优化 / 无约束优化算法
- `Hooke_Jeeves_Method`
### 优化 / 测试
- `H_J_Method_Pgm`
- `Sumt_Method_CallBack`
### 小波分析
- `Wavedec`
- `wrcoef`
- `wavelet`
### 财务函数
- `DoubleDecliningBalance`
- `FutureValue`
- `InterestPayment`
- `InterestRate`
- `InternalRateOfReturn`
- `NumberOfPeriods`
- `NetPresentValue`
- `Payment`
- `PeriodPayment`
- `PresentValue`
- `SLNDepreciation`
- `SYDDepreciation`
### 增长率与比率
- `AccumulativeYTMtoYTM`
- `YTMToAccumulativeYTM`
- `RatioValue`
- `OutPutValueByUnit`
- `OutPutLnGrowRatio`
- `OutPutGrowValue`
- `OutPutGrowValue2`
- `OutPutGrowRatio`
- `OutPutGrowRatio2`
- `MultyValue`
- `OutPutGrowValue3`
- `OutPutGrowRatio3`
- `RatioValue_Math`
### 概率分布 / 线性变换
- `Norm_LinearTransform`
### 信号处理
- `filter_hp`
+48
View File
@@ -0,0 +1,48 @@
# 平台函数
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:平台相关功能与系统接口
- 主题数:4
- 函数数:19
## 主题目录
### 自有数据维护函数
- `LoadTableEx`
- `LoadTable`
- `SaveTable`
- `TestTable`
- `SaveBk`
- `DeleteBk`
- `ListTable`
- `DeleteTable`
### 自有数据维护函数 / UserDB
- `UserDataUpLoad`
- `HexToString`
- `TransFileName`
### 平台执行信息
- `tsAppServer`
- `TsAppServerName`
- `SendToClient`
- `TS_ModuleInfo`
### 用户和函数相关函数
- `User`
- `FunctionType`
- `FunctionName`
- `FunctionVer`
+183
View File
@@ -0,0 +1,183 @@
# 资源访问函数
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:文件、数据库、网络与外部资源访问
- 主题数:10
- 函数数:136
## 主题目录
### 数据库访问函数
- `ExecSQL`
### 文件访问函数
- `FileList`
- `FileAge`
- `RemoveDir`
- `FileSize`
- `SetFileAttr`
- `FileDelete`
- `Sysdbfwrite`
- `FileTime`
- `SetFileAge`
- `WriteFile`
- `WriteToLog`
- `FileExists`
- `FileCopy`
- `SetFileTime`
- `ReadExcelSheets`
- `CreateDir`
- `FileAttr`
- `ReadFile`
- `Sysdbfread`
- `FileRename`
- `ImportFile`
- `ExportFile`
- `ExportFile2`
- `ImportFile2`
- `FileMode`
- `SetFileMode`
- `FileAttrToStr`
- `FileModeToStr`
- `StrToFileAttr`
- `StrToFileMode`
- `Filemove`
### 文件访问函数 / 导入导出类型函数
- `ftCSV`
- `ftXLS`
- `ftXls2`
- `ftXls3`
- `ftStream`
- `ftString`
- `ftXML`
- `ftdbf`
### 文件访问函数 / 文件读写类型函数
- `rwByte`
- `rwInt`
- `rwReal`
- `rwStr`
- `rwObj`
- `rwRaw`
- `rwBinary`
### 网络访问以及相关函数
- `GetHttp`
- `PostHttp`
- `GetURL`
- `CreateHttpSession`
- `SetHttpMode`
- `SetHttpCallBack`
- `GetHttpContent`
- `GetHttpResponseHeader`
- `SysSendMail`
### INI文件处理函数
- `IniReadBool`
- `IniReadDate`
- `IniReadDateTime`
- `IniReadFloat`
- `IniReadInteger`
- `IniReadTime`
- `IniReadString`
- `IniReadBinaryStream`
- `IniReadSection`
- `IniReadSections`
- `IniReadSectionValues`
- `IniSectionExists`
- `IniValueExists`
- `IniWriteBool`
- `IniWriteDate`
- `IniWriteDateTime`
- `IniWriteFloat`
- `IniWriteInteger`
- `IniWriteTime`
- `IniWriteString`
- `IniWriteBinaryStream`
- `IniDeleteKey`
- `IniEraseSection`
### INI文件处理函数 / 宽字节处理函数
- `IniReadSectionsw`
### 进程相关函数
- `SysPutenv`
- `SysExec`
- `SysParamStr`
- `SysErrorMessage`
- `Sysgetenv`
- `SysWaitForMultipleObjects`
- `SysTerminate`
- `SysCreateMutex`
- `SysCloseHandle`
- `SysReleaseMutex`
- `SysProcessID`
- `SysParamcount`
- `SysThreadID`
- `Sleep`
- `SysWaitForSingleObject`
- `SysGetenvs`
- `SysexecReadpipe`
- `SysexecGetenvs`
- `SysexecDeletepipe`
- `SysexecSetenvs`
- `SysexecNewpipe`
- `SysExecWritepipe`
- `dbglocalrunning`
- `dbglocalcancel`
- `SysThreadSelf`
- `syslinuxkrnlclosemutex`
- `SysSetThreadPriority`
- `SysGetThreadPriority`
- `SysSetProcessPriority`
- `SysGetProcessPriority`
- `SysGetProcessList`
- `SysGetProcessListw`
- `SysGetProcessNamePath`
- `SysGetProcessNamePathw`
- `SysGetProcessCmdLine`
- `SysGetProcessCmdLinew`
- `SysSetThreadName`
- `SysGetThreadName`
- `SysGetThreads`
- `SysPPid`
- `SysGetSubProcesses`
- `SysKill`
- `SysPidOfTid`
- `SysPidOfHandle`
- `SysHandleOfPid`
### 进程相关函数 / 获取COM进程
- `SysGetPidOfCom`
- `SysGetWndOfCaption`
- `SysGetPidtidOfWnd`
### 本地资源相关函数
- `SysExecName`
- `PluginPath`
- `FileInfo`
- `Getlogicdrive`
- `GetDeviceFree`
- `Getdeviceinfo`
- `Createlink`
- `Realpath`
+101
View File
@@ -0,0 +1,101 @@
# 系统相关函数
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:数据类型、表达式调用、性能与运行时能力
- 主题数:9
- 函数数:57
## 主题目录
### 数据类型函数
- `DataType`
- `ifInt`
- `ifInt64`
- `ifReal`
- `ifNumber`
- `ifString`
- `ifArray`
- `ifNil`
- `ifExp`
- `ifGraph`
- `ifGraphGroup`
- `ifBinary`
- `ifMatrix`
- `ifObj`
- `GetOleObject`
- `CreateComObject`
- `CreateMatrix`
- `MatrixToArray`
- `GetMatrixFields`
- `CreateBinary`
- `ConvertDataToBuf`
- `ConvertBufToData`
### 数据类型函数 / None类型
- `ifNone`
- `GetNone`
### 数据类型转换函数
- `Integer`
- `Int64`
- `Real`
- `String`
- `WideString`
- `Binary`
- `SetPrecision`
- `ToSTM`
- `ToSTN`
- `ToXML`
- `XML`
- `ExportCsv`
- `ImportCsv`
### 复制函数
- `dupValue`
### 随机函数
- `randomize`
- `random`
- `RandomFrom`
### 条件选择函数
- `IfThen`
- `IfThen3`
### 表达式相关函数
- `Eval`
- `Call`
- `CallInArray`
- `Invoke`
- `Invokeinarray`
- `SafeEval`
- `DoubleVariableExecute`
- `MultipleExecute`
- `SingleVariableExecute`
- `SafeSetSysParam`
### 性能优化相关函数
- `SetProfiler`
- `GetProfilerInfo`
### 函数库路径
- `sysgettsllibpath`
- `syssettsllibpath`
+34
View File
@@ -0,0 +1,34 @@
# 第三方交互函数
这一页只负责函数定位:先按主题找到模块,再在页内搜索函数名。
## 使用方式
- 返回总目录:[catalog/index.md](index.md)
- 需要基础语法时回到 [../../syntax/index.md](../../syntax/index.md)
- 需要金融任务组织方式时回到 [../../finance/index.md](../../finance/index.md)
## 模块范围
- 说明:第三方库与外部程序交互能力
- 主题数:3
- 函数数:8
## 主题目录
### Python支持函数
- `PyRun`
- `PyCall`
- `PyError`
### R支持函数
- `RRelease`
### Html
- `TextToHtml`
- `TextToURL`
- `HtmlToText`
- `URLToText`
+34
View File
@@ -0,0 +1,34 @@
# Reference Index
文档类型:检索页
是否可直接用于生成代码:否
是否含已验证可执行示例:否
是否含已验证反例:否
遇到不确定时跳转到:[catalog/index.md](catalog/index.md)、[../syntax/index.md](../syntax/index.md)、[../finance/index.md](../finance/index.md)
这里是函数查阅层,不是默认通读入口。现在这一页本身就是函数总入口,不再要求先跳到额外的中转页。
## 先看这 5 条
- 这里用于函数查找,不用于建立基础语法模型。
- 不要把 reference 当成默认通读入口;如果任务就是查函数,可以直接从这里开始。
- 函数库规模很大,应先走索引,再做定向检索。
- 如果目录和定向检索都找不到函数,不要默认它是 TSL 内建函数;先回语法层、业务层、模块页或项目文档确认来源。
- 如果你还在问“语言怎么写”,先回 [../syntax/index.md](../syntax/index.md)。
## 检索策略
1. 先看 [catalog/index.md](catalog/index.md) 的模块目录,确定大类。
2. 进入对应模块页,在页内搜索具体函数名。
3. 仍然不确定时,再用 `rg``docs/tsl/reference/catalog/` 做定向搜索。
4. 如果目录和定向检索都找不到函数,不要发明函数名,也不要默认它是 TSL 内建函数;回 [../syntax/index.md](../syntax/index.md)、[../finance/index.md](../finance/index.md)、[../modules/index.md](../modules/index.md) 或项目文档确认来源。
## 按任务跳转
| 当前任务 | 先读哪里 |
| --- | --- |
| 查函数库入口 | [catalog/index.md](catalog/index.md) |
| 直接按模块查函数 | [catalog/index.md](catalog/index.md) |
| 回到语法层 | [../syntax/index.md](../syntax/index.md) |
| 回到金融层 | [../finance/index.md](../finance/index.md) |
| 回到模块层 | [../modules/index.md](../modules/index.md) |