metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cestella <>
Subject [GitHub] metron pull request #867: METRON-1350: Add reservoir sampling functions to S...
Date Wed, 13 Dec 2017 22:09:33 GMT
Github user cestella commented on a diff in the pull request:
    --- Diff: metron-analytics/metron-statistics/ ---
    @@ -53,6 +53,32 @@ functions can be used from everywhere where Stellar is used.
       * bounds - A list of value bounds (excluding min and max) in sorted order.
     * Returns: Which bin N the value falls in such that bound(N-1) < value <= bound(N).
 No min and max bounds are provided, so values smaller than the 0'th bound go in the 0'th
bin, and values greater than the last bound go in the M'th bin.
    +### Sampling Functions
    +#### `SAMPLE_ADD`
    +* Description: Add a value or collection of values to a sampler.
    +* Input:
    --- End diff --
    Actually, more than likely it'd be a separate init since each type are going to have different
types of parameters depending on the algorithm.  So a biased sampler would be `SAMPLE_INIT_BIASED(size,


View raw message