Changes between Version 81 and Version 82 of WKTRaster/SpecificationWorking03


Ignore:
Timestamp:
May 16, 2011, 12:04:10 PM (13 years ago)
Author:
Bborie Park
Comment:

ST_Quantile

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking03

    v81 v82  
    18811881
    18821882----
     1883'''ST_Quantile(raster, nband) -> set of records'''[[BR]]
     1884In addition to determining the histogram of a raster, providing the ability to compute quantiles permits a user to reference a value in the context of the sample or population. Thus, a value could be examined to be at the raster's 25%, 50%, 75% percentile.
     1885
     1886http://en.wikipedia.org/wiki/Quantile
     1887
     1888ST_Quantile variations:
     1889
     18901. ST_Quantile(rast raster, nband int, hasnodata boolean, quantiles double precision[]) -> set of records
     1891
     1892  each row returned is of (quantile double precision, value double precision)
     1893
     1894  nband: index of band to process on
     1895
     1896  hasnodata: if FALSE, any pixel who's value is nodata is ignored.
     1897
     1898  quantiles: array of percentages to compute values for
     1899
     1900{{{
     1901ST_Quantile(rast, 1, FALSE, ARRAY[0.1, 0.3, 0.7])
     1902
     1903ST_Quantile(rast, 1, TRUE, ARRAY[0.2])
     1904
     1905ST_Quantile(rast, 1, FALSE, ARRAY[0, 1])
     1906}}}
     1907
     19082. ST_Quantile(rast raster, nband int, quantiles double precision[]) -> set of records
     1909
     1910  "hasnodata" is assumed to be FALSE
     1911
     1912{{{
     1913ST_Quantile(rast, 1, ARRAY[0.1, 0.3, 0.7])
     1914}}}
     1915
     19163. ST_Quantile(rast raster, nband int, hasnodata boolean) -> set of records
     1917
     1918  "quantiles" assumed to be ARRAY[0, 0.25, 0.5, 0.75, 1]
     1919
     19204. ST_Quantile(rast raster, nband int) -> set of records
     1921
     1922  "hasnodata" is assumed to be FALSE and "quantiles" assumed to be ARRAY[0, 0.25, 0.5, 0.75, 1]
     1923
     19245. ST_Quantile(rast raster, quantiles double precision[]) -> set of records
     1925
     1926  "nband" is assumed to be 1 and "hasnodata" is FALSE
     1927
     19286. ST_Quantile(rast raster) -> set of records
     1929
     1930  "nband" is assumed to be 1 and "quantiles" assumed to be ARRAY[0, 0.25, 0.5, 0.75, 1]
     1931
     19327. ST_Quantile(rast raster, nband int, hasnodata boolean, quantile double precision) -> record
     1933
     1934  quantile: the single percentile to compute
     1935
     19368. ST_Quantile(rast raster, nband int, quantile double precision) -> record
     1937
     1938  "hasnodata" is assumed to be FALSE
     1939
     19409. ST_Quantile(rast raster, hasnodata boolean, quantile double precision) -> record
     1941
     1942  "nband" is assumed to be 1
     1943
     194410. ST_Quantile(rast raster, quantile double precision) -> record
     1945
     1946  "nband" is assumed to be 1  and "hasnodata" is assumed to be FALSE
     1947
     1948ST_ApproxQuantile adds a "sample_percent" indicating the percentage of the raster to sample
     1949
     19501. ST_ApproxQuantile(rast raster, nband int, hasnodata boolean, sample_percent double precision, quantiles double precision[]) -> set of records
     1951
     1952  nband: index of band to process on
     1953
     1954  hasnodata: if FALSE, any pixel who's value is nodata is ignored
     1955
     1956  sample_percent: a value between 0 and 1 indicating the percentage of the raster band's pixels to consider when computing the quantiles
     1957
     1958  quantiles: array of percentages to compute values for
     1959
     1960{{{
     1961ST_ApproxQuantile(rast, 1, FALSE, 0.1, ARRAY[0.1, 0.3, 0.7])
     1962
     1963ST_ApproxQuantile(rast, 1, TRUE, .2, ARRAY[0.2])
     1964
     1965ST_ApproxQuantile(rast, 1, FALSE, 0.3, ARRAY[0, 1])
     1966}}}
     1967
     19682. ST_ApproxQuantile(rast raster, nband int, sample_percent double precision, quantiles double precision[]) -> set of records
     1969
     1970  "hasnodata" is assumed to be FALSE
     1971
     1972{{{
     1973ST_ApproxQuantile(rast, 1, .05, ARRAY[0.1, 0.3, 0.7])
     1974}}}
     1975
     19763. ST_ApproxQuantile(rast raster, nband int, sample_percent double precision) -> set of records
     1977
     1978  "hasnodata" is assumed to be FALSE and "quantiles" assumed to be ARRAY[0, 0.25, 0.5, 0.75, 1]
     1979
     19804. ST_ApproxQuantile(rast raster, sample_percent double precision, quantiles double precision[]) -> set of records
     1981
     1982  "nband" is assumed to be 1
     1983
     19845. ST_ApproxQuantile(rast raster, nband int, sample_percent double precision, quantile double precision) -> record
     1985
     1986  quantile: the single percentile to compute
     1987
     19886. ST_ApproxQuantile(rast raster, sample_percent double precision, quantile double precision) -> record
     1989
     1990  "nband" is assumed to be 2
     1991
     19927. ST_ApproxQuantile(rast raster, sample_percent double precision) -> set of records
     1993
     1994  "nband" is assumed to be 1 and "quantiles" assumed to be ARRAY[0, 0.25, 0.5, 0.75, 1]
     1995
     19968. ST_ApproxQuantile(rast raster, nband int, quantile double precision) -> record
     1997
     1998  "sample_percent" assumed to be 0.1
     1999
     20009. ST_ApproxQuantile(rast raster, quantiles double precision[]) -> set of records
     2001
     2002  "nband" is assumed to be 1 and "sample_percent" assumed to be 0.1
     2003
     200410. ST_ApproxQuantile(rast raster, quantile double precision) -> record
     2005
     2006  "nband" assumed to be 1 and "sample_percent" assumed to be 0.1
     2007
     200811. ST_ApproxQuantile(rast raster, nband int) -> set of records
     2009
     2010  "quantiles" assumed to be ARRAY[0, 0.25, 0.5, 0.75, 1] and "sample_percent" assumed to be 0.1
     2011
     201212. ST_ApproxQuantile(rast raster) -> set of records
     2013
     2014  "nband" is assumed to be 1, "quantiles" assumed to be ARRAY[0, 0.25, 0.5, 0.75, 1] and "sample_percent" assumed to be 0.1
     2015
     2016----
    18832017== '''Objective FV.17 - Being able to refer to band by textual name.''' ==
    18842018