<p>In <a href="https://github.com/mlpack/mlpack/pull/684#discussion_r66776567">src/mlpack/methods/neighbor_search/sort_policies/nearest_neighbor_sort.hpp</a>:</p>
<pre style='color:#555'>&gt; @@ -150,6 +150,21 @@ class NearestNeighborSort
&gt;        return DBL_MAX;
&gt;      return a + b;
&gt;    }
&gt; +
&gt; +  /**
&gt; +   * Return the given value relaxed.
&gt; +   *
&gt; +   * @param value Value to relax.
&gt; +   * @param epsilon Relative error (non-negative).
&gt; +   *
&gt; +   * @return double Value relaxed.
&gt; +   */
&gt; +  static inline double Relax(const double value, const double epsilon)
&gt; +  {
&gt; +    if (value == DBL_MAX)
&gt; +      return DBL_MAX;
&gt; +    return (1 / (1 + epsilon)) * value;
</pre>
<p>Okay so as I understand it, for KNN we have a strong preference; go ahead with the current range. I agree with option 4 for KFN. In case of users who understand KFN but not approximation (which will be the case with most of the users who use command line tool and which is the case with couple of my friends), most of them will prefer percentage option as it is clear. I mean the option suggested by <a href="https://github.com/rcurtin" class="user-mention">@rcurtin</a>, if the user wants furthest neighbors that are at least x% of the distance as the true furthest neighbor, they just pass in "x/100". This way the concept of epsilon will be consistent from KNN to KFN and the users won't have to go through this when using the executable.  </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/684/files/07879a2cc79b35b10d7fae687d6e27ad90a9f2d7#r66776567">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFGYqymANWZveinZG2H-HJnXHN-zPks5qLT7VgaJpZM4IvhJu">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBY9X5TfAux3d8ulOZ2bhlKubraAks5qLT7VgaJpZM4IvhJu.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/684/files/07879a2cc79b35b10d7fae687d6e27ad90a9f2d7#r66776567"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>