Weed 数据树
11 个节点
本页内容 11
加法
函数Graph-friendly numeric longest-tree addition.
加法 -> 数字的 Cad Tree
左侧: 数字的 Cad Tree
右侧: 数字的 Cad TreeCadTree<double> Add(CadTree<double> left, CadTree<double> right)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 左侧 | 数字的 Cad Tree | — | |
| 右侧 | 数字的 Cad Tree | — |
返回
| 结果 | 数字的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
创建数据树
函数Creates a tree in numeric lexicographic path order, concatenating duplicate branches in input order.
创建数据树 -> T 的 Cad Tree
路径: 整数数组数组
分支: T 数组数组CadTree<T> Create(int[][] paths, T[][] branches)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 路径 | 整数数组数组 | — | |
| 分支 | T 数组数组 | — |
返回
| 结果 | T 的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
展平数字
函数Graph-friendly numeric flattening into {0}.
展平数字(树: 数字的 Cad Tree) -> 数字的 Cad Tree
CadTree<double> FlattenNumbers(CadTree<double> tree)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 树 | 数字的 Cad Tree | — |
返回
| 结果 | 数字的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
翻转矩阵
函数Transposes a rectangular tree: item indices become branches; ragged input is rejected instead of inventing nulls.
翻转矩阵(树: T 的 Cad Tree) -> T 的 Cad Tree
CadTree<T> FlipMatrix(CadTree<T> tree)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 树 | T 的 Cad Tree | — |
返回
| 结果 | T 的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
翻转数字
函数Graph-friendly rectangular numeric transpose.
翻转数字(树: 数字的 Cad Tree) -> 数字的 Cad Tree
CadTree<double> FlipNumbers(CadTree<double> tree)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 树 | 数字的 Cad Tree | — |
返回
| 结果 | 数字的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
升级数字为数据树
函数Graph-friendly numeric graft, appending the item index to each source path.
升级数字为数据树(树: 数字的 Cad Tree) -> 数字的 Cad Tree
CadTree<double> GraftNumbers(CadTree<double> tree)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 树 | 数字的 Cad Tree | — |
返回
| 结果 | 数字的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
匹配
函数Matches two item-access trees using longest branches and longest lists. The deeper tree supplies output paths; depth ties favor the left input.
匹配 -> TResult 的 Cad Tree
左侧: TLeft 的 Cad Tree
右侧: TRight 的 Cad Tree
组合方式: Func<TLeft, TRight, TResult>CadTree<TResult> Match(
CadTree<TLeft> left,
CadTree<TRight> right,
Func<TLeft, TRight, TResult> combine)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 左侧 | TLeft 的 Cad Tree | — | |
| 右侧 | TRight 的 Cad Tree | — | |
| 组合方式 | Func<TLeft, TRight, TResult> | — |
返回
| 结果 | TResult 的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
数字
函数Creates a numeric tree with sorted, merged paths.
数字(路径: 整数数组数组, 分支: 数字数组数组) -> 数字的 Cad Tree
CadTree<double> Numbers(int[][] paths, double[][] branches)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 路径 | 整数数组数组 | — | |
| 分支 | 数字数组数组 | — |
返回
| 结果 | 数字的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
简化
函数Removes common leading indices while retaining at least one index in each path.
简化(树: T 的 Cad Tree) -> T 的 Cad Tree
CadTree<T> Simplify(CadTree<T> tree)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 树 | T 的 Cad Tree | — |
返回
| 结果 | T 的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
简化数字
函数Graph-friendly removal of common path prefixes.
简化数字(树: 数字的 Cad Tree) -> 数字的 Cad Tree
CadTree<double> SimplifyNumbers(CadTree<double> tree)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 树 | 数字的 Cad Tree | — |
返回
| 结果 | 数字的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计
修剪路径
函数Removes trailing path indices and merges resulting branches. Removing the entire path maps to {0}.
修剪路径(树: T 的 Cad Tree, 层级: 整数) -> T 的 Cad Tree
CadTree<T> TrimPaths(CadTree<T> tree, int levels = 1)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 树 | T 的 Cad Tree | — | |
| 层级 | 整数 | 1 |
返回
| 结果 | T 的 Cad Tree |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Weed 数据树
- 所属包
- 计算机辅助设计