<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Anna<br>
<br>
I was thinking about the option for the user to (1) define a
separate percentage for each category or (2) one percentage for the
whole raster (e.g., 10% --> 10% of cells in each category is
sampled). <br>
<br>
If you implement the second option, you would more or less have your
6th TODO (<span class="c">specify number of points and distribute
them according to histogram) I guess?<br>
<br>
Cheers,<br>
<br>
Paulo<br>
</span><br>
<br>
<br>
<div class="moz-cite-prefix">On 23-06-15 04:01, Anna Petrášová
wrote:<br>
</div>
<blockquote
cite="mid:CAE0EDEoADXVTZOLu+6txELWKEQybKeOL3vmPn1e-+HT9v2TkOA@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra">Hi Paulo,</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jun 16, 2015 at 5:38 AM,
Paulo van Breugel <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:p.vanbreugel@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:p.vanbreugel@gmail.com">p.vanbreugel@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div>I am having a look at the new r.sample.category
addon. Great idea. I would like to make a suggestion;
to allow the user to define the number of points as a
percentage, similar to r.random.<br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>do you mean number of points should be based on
percentage of cells in each category or the entire raster?
There are some other TODOs in</div>
<div><a moz-do-not-send="true"
href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.sample.category/r.sample.category.py#L47">https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.sample.category/r.sample.category.py#L47</a><br>
</div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>Anna</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div><br>
</div>
Rgds, <br>
<br>
Paulo<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>