Earth Engine은 1차원 벡터, 2차원 행렬, 3차원 큐브, 고차원 큐브를 ee.Array 유형으로 나타냅니다. 배열은 유연한 데이터 구조이지만 제공하는 기능에 비해 Earth Engine의 다른 데이터 구조만큼 확장되지는 않습니다. 배열을 사용하지 않고 문제를 해결할 수 있으면 결과가 더 빠르고 효율적으로 계산됩니다. 하지만 문제에 더 높은 차원 모델, 유연한 선형 대수 또는 배열에 고유하게 적합한 다른 항목이 필요한 경우 Array 클래스를 사용할 수 있습니다.
배열 크기, 모양, 크기
배열의 측정기준은 기본 데이터가 달라지는 축의 수를 나타냅니다. 예를 들어 0차원 배열은 스칼라 숫자이고, 1차원 배열은 벡터이고, 2차원 배열은 행렬이고, 3차원 배열은 큐브이고, 3차원 이상의 배열은 하이퍼 큐브입니다. N차원 배열의 경우 0에서 N-1까지 N개의 축이 있습니다. 배열의 모양은 축의 길이에 따라 결정됩니다. 축의 길이는 축을 따라 있는 위치 수입니다. 배열 크기 또는 배열의 총 요소 수는 축 길이의 곱과 같습니다. 현재 희소 배열이나 불규칙 배열은 지원되지 않으므로 모든 축의 모든 위치에 있는 각 값에는 유효한 숫자가 있어야 합니다. 배열의 요소 유형은 각 요소가 어떤 종류의 숫자인지를 나타냅니다. 배열의 모든 요소는 동일한 유형을 갖습니다.
[[["이해하기 쉬움","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"]],["최종 업데이트: 2025-02-18(UTC)"],[[["Earth Engine utilizes the `ee.Array` type to represent vectors, matrices, cubes, and higher-dimensional hypercubes, offering a flexible but potentially less scalable data structure compared to other options."],["The dimension of an array signifies the number of axes, with 0-D representing scalars, 1-D vectors, 2-D matrices, 3-D cubes, and beyond 3-D hypercubes."],["An array's shape is defined by the lengths of its axes, while the total size is the product of these lengths, with each position containing a valid number due to the lack of support for sparse or ragged arrays."]]],[]]