Re: [math] Problem with immutable distribution

2010-09-29 Thread Mikkel Meyer Andersen
Hi, 2010/9/29 Gilles Sadowski : >> >> Just to be sure: You propose to remove >> >> public void setDistribution(TDistribution value) >> >> Is this correct? >> > >> > Yes. >> > >> >> If so, another proposal - I'm not sure it's a clever one - is >> >> >> >> ---CUT--- >> >>     public TDistribution se

Re: [math] Problem with immutable distribution

2010-09-29 Thread Gilles Sadowski
> >> Just to be sure: You propose to remove > >> public void setDistribution(TDistribution value) > >> Is this correct? > > > > Yes. > > > >> If so, another proposal - I'm not sure it's a clever one - is > >> > >> ---CUT--- > >>     public TDistribution setDistribution(TDistribution value) { > >>  

Re: [math] Problem with immutable distribution

2010-09-29 Thread Mikkel Meyer Andersen
Hi, 2010/9/29 Gilles Sadowski : >> Just to be sure: You propose to remove >> public void setDistribution(TDistribution value) >> Is this correct? > > Yes. > >> If so, another proposal - I'm not sure it's a clever one - is >> >> ---CUT--- >>     public TDistribution setDistribution(TDistribution va

Re: [math] Problem with immutable distribution

2010-09-29 Thread Gilles Sadowski
> Just to be sure: You propose to remove > public void setDistribution(TDistribution value) > Is this correct? Yes. > If so, another proposal - I'm not sure it's a clever one - is > > ---CUT--- >    public TDistribution setDistribution(TDistribution value) { > double n = value.getDegree

Re: [math] Problem with immutable distribution

2010-09-29 Thread Mikkel Meyer Andersen
Hi, Just to be sure: You propose to remove public void setDistribution(TDistribution value) Is this correct? If so, another proposal - I'm not sure it's a clever one - is ---CUT---    public TDistribution setDistribution(TDistribution value) { double n = value.getDegreesOfFreedom();

[math] Problem with immutable distribution

2010-09-29 Thread Gilles Sadowski
Hi. While making the distribution classes immutable, I'm encountering a problem. In class "SimpleRegression" (package "stat.regression"), there is (at line 140): ---CUT--- if (n > 2) { distribution.setDegreesOfFreedom(n - 2); } ---CUT--- and, similarly, in class "TTestI