[jira] [Commented] (MATH-672) EmpiricalDistribution(Impl) should implement the Distribution interface

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (MATH-672) EmpiricalDistribution(Impl) should implement the Distribution interface

Baljit Singh (Jira)

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

Luc Maisonobe commented on MATH-672:
------------------------------------

Is the code ready to be included?
               

> EmpiricalDistribution(Impl) should implement the Distribution interface
> -----------------------------------------------------------------------
>
>                 Key: MATH-672
>                 URL: https://issues.apache.org/jira/browse/MATH-672
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Phil Steitz
>             Fix For: 3.2
>
>
> To compute cumulative probability at a point x
> if no data have been loaded, throw IllegalStateException
> if x is below the global min, return 0
> if x is above the global max, return 1
> otherwise find the bin that x belongs to, sum the probabilities of the bins below x's bin and use the configured kernel to compute how much of the containing bin's mass should be added the total

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira