お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.ImageCollection.randomColumn
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
確定的な疑似乱数列をコレクションに追加します。出力は倍精度浮動小数点数です。「均一」分布(デフォルト)を使用する場合、出力は [0, 1] の範囲内になります。「正規」分布を使用する場合、出力は μ=0、σ=1 になりますが、明示的な上限はありません。
用途 | 戻り値 |
---|
ImageCollection.randomColumn(columnName, seed, distribution, rowKeys) | FeatureCollection |
引数 | タイプ | 詳細 |
---|
this: collection | FeatureCollection | ランダムな列を追加する入力コレクション。 |
columnName | 文字列、デフォルト: 「random」 | 追加する列の名前。 |
seed | 長い、デフォルト: 0 | 乱数の生成時に使用されるシード。 |
distribution | 文字列、デフォルト: "uniform" | 生成する乱数の分布タイプ(「一様」または「正規」のいずれか)。 |
rowKeys | リスト(省略可) | コレクションの要素を一意かつ繰り返し識別できるプロパティのリスト。乱数の生成に使用されます。デフォルトは [system:index] です。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eAdds a new column of random numbers to an existing FeatureCollection.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify the column name, seed for reproducibility, and distribution type (uniform or normal).\u003c/p\u003e\n"],["\u003cp\u003eThe 'uniform' distribution generates numbers between 0 (inclusive) and 1 (exclusive), while the 'normal' distribution generates numbers with a mean of 0 and standard deviation of 1.\u003c/p\u003e\n"],["\u003cp\u003eThe output is a new FeatureCollection with the added random column.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.randomColumn\n\nAdds a column of deterministic pseudorandom numbers to a collection. The outputs are double-precision floating point numbers. When using the 'uniform' distribution (default), outputs are in the range of \\[0, 1). Using the 'normal' distribution, outputs have μ=0, σ=1, but have no explicit limits.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------------------------------------|-------------------|\n| ImageCollection.randomColumn`(`*columnName* `, `*seed* `, `*distribution* `, `*rowKeys*`)` | FeatureCollection |\n\n| Argument | Type | Details |\n|--------------------|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `collection` | FeatureCollection | The input collection to which to add a random column. |\n| `columnName` | String, default: \"random\" | The name of the column to add. |\n| `seed` | Long, default: 0 | A seed used when generating the random numbers. |\n| `distribution` | String, default: \"uniform\" | The distribution type of random numbers to produce; one of 'uniform' or 'normal'. |\n| `rowKeys` | List, optional | A list of properties that should uniquely and repeatably identify an element of the collection, used to generate the random number. Defaults to \\[system:index\\]. |"]]