commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <gil...@harfang.homelinux.org>
Subject Re: [math] NaN value from evaluate method from PolynomialFunctionLagrangeForm class
Date Fri, 07 Jun 2013 14:52:05 GMT
On Mon, 3 Jun 2013 15:37:06 -0300, Marcelo Damasceno wrote:
> The code was in the first e-mail.
>
>> double[]x={0.0 , 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 , 9.0 
>> ,
>> 10.0, ...}
>> //x.length=3540
>> double[]y={0.0 , 0.500213 , 4.3E-5 , 0.015038 , 0.237525 , 0.024837 
>> ,
>> 0.262735,...}
>> //y.length=3540.
>>
>> System.out.println(PolynomialFunctionLagrangeForm.evaluate(x,y, 0))
>>
>
> The problem is: my x has 3540 elements. It's from a dataset. I debug 
> the
> evaluate method in PolynomialFunctionLagrangeForm. There is a array c
> there, and it's inicialized with -Infinity value.
> The NaN value happens when is processed the x[653]. The x[653] is a
> ordinary element, with any particularity.
>
> I changed the PolynomialFunctionLagrangeForm to Sline and worked 
> fine. The
> problem is that I would to know the degree and coefficients of the
> polynomial.
>
> How can I inform this bug to Apache community?

https://issues.apache.org/jira/browse/MATH

Gilles


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


Mime
View raw message