[ 
https://issues.apache.org/jira/browse/MATH-1087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gilles resolved MATH-1087.
--------------------------

    Resolution: Not A Problem

No counter-arguments to the provided rationale for private instance fields.
[Consensus has been to avoid protected variables.]


> private vars in MixtureMultivariateRealDistribution
> ---------------------------------------------------
>
>                 Key: MATH-1087
>                 URL: https://issues.apache.org/jira/browse/MATH-1087
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Jirka Borovec
>              Labels: features
>             Fix For: 3.3
>
>   Original Estimate: 0.1h
>  Remaining Estimate: 0.1h
>
> May I have question why the variables
>     private final double[] weight;
>     private final List<T> distribution;
> in MixtureMultivariateRealDistribution are private not only protected. I 
> wanted to extend this class for some other distributions but after inheriting 
> they are not accessible so difficult to handle. Even I cannot save the list 
> anywhere else  in child because in constructor and also in the getter it 
> creates a new list with these components.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to