Function1D
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
// Union field function can be only one of the following:
"constant": number,
"pwl": {
object (PieceWiseAffineFunction )
}
// End of list of possible types for union field function .
} |
字段 |
联合字段 function 。该函数的参数的统一性应为:- 如果重量为 kg - 如果是时间:min - 如果托盘数为:1 function 只能为以下之一: |
constant |
number
该函数是一个常量。
|
pwl |
object (PieceWiseAffineFunction )
该函数为分段线性函数。
|
PieceWiseAffineSegment
JSON 表示法 |
{
"startX": number,
"startY": number,
"endX": number,
"endY": number
} |
字段 |
startX |
number
细分的开头:x。
|
startY |
number
片段的开头:y。
|
endX |
number
片段结束:x。
|
endY |
number
细分的终点:y。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-15。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-10-15。"],[[["This documentation describes a Function of one argument, which can be either a constant value or a piecewise linear function."],["If the function is piecewise linear, it's defined by a series of segments, each represented by a `PieceWiseAffineSegment`."],["Each `PieceWiseAffineSegment` is determined by its starting and ending points (x, y coordinates)."],["The argument of the function represents different units such as weight (kg), time (min), or number of pallets."]]],["The `function` can be either a `constant` (a number) or a `pwl` (piecewise linear function). A piecewise-linear function (`pwl`) is defined by an array of `segments`. Each `segment` is described by its `startX`, `startY`, `endX`, and `endY` values. The argument's unit is kg for weight, min for time, or 1 for the number of pallets. These elements allow defining functions of one argument as a constant or piecewise linear.\n"]]