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 。函式引數的單位應為:- if a weight: kg - if a time: 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。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間: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"]],["上次更新時間: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"]]