[mlpack-git] [mlpack/mlpack] Added the discretize function. Design changes as discussed. (#703)

Marcus Edel notifications at github.com
Sun Aug 14 11:58:38 EDT 2016


> +  /**
> +   * Computes distance transform of 1D vector f.
> +   * @param f input vector whose distance transform is to be found.
> +   * @param n size of the Output vector to be made.
> +   * @param inf a large double value.
> +   * @param d Output vector which stores distance transform of f.
> +   */
> +  void DistanceTransform1D(const arma::vec& f, const size_t n,
> +                           const double inf, arma::vec& d);
> +  
> +  /**
> +   * Computes distance transform of a 2D array
> +   * @param Im input array whose distance transform is to be found.
> +   * @param inf a large double value.
> +   */
> +  void DistanceTransform2D(MatType &Im, const double inf);

Note that Variable, reference, and pointer names begin with a lower case letter. Take a look at: https://github.com/mlpack/mlpack/wiki/DesignGuidelines#naming-conventions for more informations.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/703/files/72eb1ef22c7db1ea33af3de1cd043cdb277ec562#r74704272
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160814/f459d111/attachment.html>


More information about the mlpack-git mailing list