[
https://issues.apache.org/jira/browse/STATISTICS-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Herbert resolved STATISTICS-48.
------------------------------------
Resolution: Implemented
> Remove isSupportConnected from the distribution interfaces
> ----------------------------------------------------------
>
> Key: STATISTICS-48
> URL: https://issues.apache.org/jira/browse/STATISTICS-48
> Project: Apache Commons Statistics
> Issue Type: Improvement
> Components: distribution
> Affects Versions: 1.0
> Reporter: Alex Herbert
> Priority: Trivial
> Fix For: 1.0
>
>
> Both the discrete and continuous distribution have a property in the
> interface:
> {code:java}
> /**
> * Indicates whether the support is connected, i.e. whether
> * all values between the lower and upper bound of the support
> * are included in the support.
> *
> * @return whether the support is connected.
> */
> boolean isSupportConnected();
> {code}
> This is only ever true for all distributions.
> The functions dates back as far as Commons Math 2 with no apparent use.
> There is no facility to determine what values within the support are not
> valid. So
> the property isSupportConnect alone cannot be used to determine if the
> value you are interested in is part of the support. E.g. This would require
> a isSupported(double x) method for continuous distributions.
> I propose to remove this unused property from the distribution
> interfaces prior to the initial 1.0 release to avoid this redundant
> method.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)