Function1D
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Biểu diễn dưới dạng 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 .
} |
Trường |
Trường kết hợp function . Tính thống nhất của đối số của hàm được cho là: - nếu trọng lượng: kg - nếu thời gian: tối thiểu - nếu số lượng pallet: 1 function chỉ có thể là một trong các giá trị sau: |
constant |
number
Hàm là một hằng số.
|
pwl |
object (PieceWiseAffineFunction )
Hàm này tuyến tính từng phần.
|
PieceWiseAffineSegment
Một phân đoạn của hàm tuyến tính từng mảnh.
Biểu diễn dưới dạng JSON |
{
"startX": number,
"startY": number,
"endX": number,
"endY": number
} |
Trường |
startX |
number
Đầu phân đoạn: x.
|
startY |
number
Đầu phân đoạn: y.
|
endX |
number
Kết thúc đoạn: x.
|
endY |
number
Kết thúc đoạn: y.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-10-15 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-10-15 UTC."],[[["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"]]