ee.Reducer.countDistinct
Returns a Reducer that computes the number of distinct inputs. Where applicable, the output name is "count".
Usage | Returns |
---|
ee.Reducer.countDistinct() | Reducer |
No arguments.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Returns a Reducer that calculates the number of distinct input values."],["The output is typically named \"count\"."],["It's used within the Earth Engine platform and is invoked using `ee.Reducer.countDistinct()`."],["This reducer takes no arguments."]]],["The `ee.Reducer.countDistinct()` function returns a Reducer that calculates the number of unique input values. The output of this Reducer, when applied, represents the distinct count. It operates without any input arguments and produces a Reducer object. The default output name for the distinct count result is \"count\".\n"]]