commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Brisard <sebastien.bris...@m4x.org>
Subject Re: [math] best location for double[] sample(UnivariateFunction, double, double, int)?
Date Wed, 04 Jan 2012 11:41:50 GMT
2012/1/4 Gilles Sadowski <gilles@harfang.homelinux.org>:
> Hi.
>
>> > In o.a.c.m.transform.FastFourierTransformer, a static method
>> > double[] sample(UnivariateFunction f, double min, double max, int n)
>> > is implemented. Obviously, this method could be useful elsewhere in
>> > CM. I'm wondering where I should move it to?
>> > Options I can think of are
>> > 1. org.apache.commons.math.util.MathArrays
>> > 2. org.apache.commons.math.util.FunctionUtils  (to be created)
>> > 3. your own suggestion
>>
>> I would propose MathUtils, but if other similar functions arise, maybe a
>> new FunctionUtils would make sense.
>
> There is a "FunctionUtils" class in package "o.a.c.m.analysis".
>
> Regards,
> Gilles
>
Ooops. Missed this one. So I suppose that's where sample() should go.
Thanks,
Sébastien


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message