Here's an example script: https://code.earthengine.google.com/d511144dde609f4cf1fd8607499e2026
I would like to create a set of random points with random classes to use as training data in order to generate and evaluate a null distribution. The .randomColumn function only gives values between 0-1. To get random classes, I need uniformly distributed integers from 0 to 3, but it does not look like Feature Collections support the kind of math required to manipulate .randomColumn() like that.
My next thought is .randomPoints(), but I am unfamiliar with its use. If I use .randomPoints() to create a random Feature Collection to use as null training data, how do I:
- Make sure the points are only on land/unmasked area?
- Make sure the points don't overlap with the existing validation data?
- Add random feature classes?