お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.Algorithms.TemporalSegmentation.C2c
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Composite 2 Change(C2C)アルゴリズムの実装。このアルゴリズムは、指定された最大二乗平均平方根誤差(RMSE)内でデータを適合させるために必要な最小のセグメントを使用して、区分的線形適合で時系列をセグメント化します。アルゴリズムに指定されたすべてのバンドについて、次のバンドが返されます。
changeDate:各適合セグメントの開始日と終了日のペアを表す倍精度の 1 次元配列。日付形式は dateFormat 引数によって決まります。
value: changeDate におけるバンドの値の倍精度の 1 次元配列。
magnitude: 変更日の前後の値の絶対差を示す倍精度の 1 次元配列。最初の大きさは常に NaN です。
duration: 変更日の前のセグメントの期間の倍精度の 1 次元配列。最初の期間は常に NaN です。
rate: 変更日の前のデータの変化率の倍精度の 1 次元配列。最初のレートは常に NaN です。
postMagnitude: 変更日以降の値と変更日の値の絶対差の倍精度の 1 次元配列。最後の postMagnitude は常に NaN です。
postDuration: 変更日以降のセグメントの期間。最後の postDuration は常に NaN です。
postRate: 変更日以降のデータの変化率。最後の postRate は常に NaN です。
元のアルゴリズムの詳細については、Hermosilla et al.(2015)dx.doi.org/10.1016/j.rse.2014.11.005 をご覧ください。
このアルゴリズムはプレビュー版であり、変更される可能性があります。
用途 | 戻り値 |
---|
ee.Algorithms.TemporalSegmentation.C2c(collection, dateFormat, maxError, maxSegments, startYear, endYear, infill, spikesTolerance) | 画像 |
引数 | タイプ | 詳細 |
---|
collection | ImageCollection | C2C を実行する画像のコレクション。 |
dateFormat | 整数、デフォルト: 0 | フィッティング中に使用する時間表現: 0 = jDays、1 = 年の分数、2 = UNIX 時間(ミリ秒単位)。各時間セグメントの開始時間、終了時間、休憩時間は、このようにエンコードされます。 |
maxError | 浮動小数点数、デフォルト: 75 | |
maxSegments | 整数、デフォルト: 6 | |
startYear | 整数、デフォルト: 1984 | |
endYear | 整数。デフォルト: 2019 | |
infill | ブール値。デフォルト値は true です。 | |
spikesTolerance | 浮動小数点数、デフォルト: 0.85 | |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],[],null,["# ee.Algorithms.TemporalSegmentation.C2c\n\nAn implementation of the Composite 2 Change (C2C) algorithm. This algorithm segments a time series using a piecewise linear fit with the minimum of segments required to fit the data within the given maximum root mean squared error (RMSE). For every band given the algorithm will return the following bands:\n\n\u003cbr /\u003e\n\nchangeDate:A 1D array of doubles representing pairs of start and end dates for each fitted segment. The date format is determined by the dateFormat argument.\n\nvalue: A 1D array of doubles of the value of the band at the changeDate.\n\nmagnitude: A 1D array of doubles providing the absolute difference between the values before and after a change date. The first magnitude is always NaN.\n\nduration: A 1D array of doubles of the duration of the segment preceding the change date. The first duration is always NaN.\n\nrate: A 1D array of doubles of the rate of change of the data preceding the. change date. The first rate is always NaN.\n\npostMagnitude: A 1D array of doubles of the absolute difference between the values after the change date and the value at the change date. The last postMagnitude is always NaN.\n\npostDuration: The duration of the segment following the change date. The last postDuration is always NaN.\n\npostRate: The rate of change of the data following the change date. The last postRate is always NaN.\n\nSee Hermosilla et al. (2015) dx.doi.org/10.1016/j.rse.2014.11.005 for further details on the original algorithm.\n\nThis algorithm is in preview and is subject to change.\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|\n| `ee.Algorithms.TemporalSegmentation.C2c(collection, `*dateFormat* `, `*maxError* `, `*maxSegments* `, `*startYear* `, `*endYear* `, `*infill* `, `*spikesTolerance*`)` | Image |\n\n| Argument | Type | Details |\n|-------------------|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `collection` | ImageCollection | Collection of images on which to run C2C. |\n| `dateFormat` | Integer, default: 0 | The time representation to use during fitting: 0 = jDays, 1 = fractional years, 2 = unix time in milliseconds. The start, end and break times for each temporal segment will be encoded this way. |\n| `maxError` | Float, default: 75 | |\n| `maxSegments` | Integer, default: 6 | |\n| `startYear` | Integer, default: 1984 | |\n| `endYear` | Integer, default: 2019 | |\n| `infill` | Boolean, default: true | |\n| `spikesTolerance` | Float, default: 0.85 | |"]]