ラスターバンドのパーセンタイル値を返します。
構文
float8 ST_Percentile(raster raster_obj,
integer band,
integer percentage)パラメーター
パラメーター名 | 説明 |
raster_obj | ラスターオブジェクト。 |
band | 指定するバンドの番号。値は |
percentage | ラスターオブジェクトのパーセンタイル。ST_BuildPercentiles または ST_ComputeStatistics を使用して取得できます。 |
例
SELECT st_percentile(rast_obj, 0, 10)
FROM raster_table
WHERE id = 1;
--------------------
29.7ST_Percentile を使用して、ST_Quantile と同じ結果を得ることもできます。
SELECT st_percentile(rast_obj, 0, 25), st_percentile(rast_obj, 0, 50)
FROM raster_table
WHERE id = 1;