[ 
https://issues.apache.org/jira/browse/METRON-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15768033#comment-15768033
 ] 

ASF GitHub Bot commented on METRON-637:
---------------------------------------

GitHub user cestella opened a pull request:

    https://github.com/apache/incubator-metron/pull/401

    METRON-637: Add a STATS_BIN function to Stellar.

    When passing parameters to models, it's often useful to pass the binned 
representation of a variable based on an empirical statistical distribution, 
rather than the actual variable. This function should accept a set of 
percentile bins and a statistical sketch and a value. It should return the 
index where the percentile of the value falls.
    
    For instance, consider the value 17 who is percentile 27. If we use 25, 75, 
95 to define our bins, this function would return 1, because its percentile, 
27, is between 25 and 75.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cestella/incubator-metron METRON-637

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/401.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #401
    
----
commit 6cc98a22af1efe0fc548c59e4a1fa379a41e245b
Author: cstella <[email protected]>
Date:   2016-12-21T17:47:51Z

    Added STATS_BIN function.

commit 81921691ef413b407117764b0597c471f7eebf30
Author: cstella <[email protected]>
Date:   2016-12-21T19:22:43Z

    Documentation

----


> Add a STATS_BIN function to Stellar.
> ------------------------------------
>
>                 Key: METRON-637
>                 URL: https://issues.apache.org/jira/browse/METRON-637
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Casey Stella
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> When passing parameters to models, it's often useful to pass the binned 
> representation of a variable based on an empirical statistical distribution, 
> rather than the actual variable.  This function should accept a set of 
> percentile bins and a statistical sketch and a value.  It should return the 
> index where the percentile of the value falls.
> For instance, consider the value 17 who is percentile 27.  If we use 25, 75, 
> 95 to define our bins, this function would return 1, because its percentile, 
> 27, is between 25 and 75.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to