Projects  >  Math.NET Iridium (IRID)

  Issues    

 

 HyperLink  http://tracker.opensourcedotnet.info/Default.aspx?p=2&i=119 
IRID-119 - Polynomial Extrapolation in positive direction throws IndexOutOfRangeException
Created: 02/04/2008 19:57:16    
Revised: 02/04/2008 20:02:40
   Back to Issue Filter   
      
<< >>
Reported by philipp in the forum. Thanks!

Repro Steps:

double[] x = new double[] { -6.060771484, -5.855378418, -1.794238281, -1.229428711, 0.89935791, 2.912121582, 4.699230957, 4.788347168, 7.728830566, 11.70989502 };

double[] y = new double[] { 0.959422052, 0.959447861, 0.959958017, 0.960028946, 0.960323274, 0.960636258, 0.960914195, 0.960928023, 0.96138531, 0.962004483 };


PolynomialInterpolationAlgorithm pia = new PolynomialInterpolationAlgorithm(10);
SampleList sl = new SampleList(10);

for(int i=0;i<10;i++)
{
    sl.Add(x[i],y[i]);
}

pia.Prepare(sl);

Console.WriteLine(pia.Extrapolate(12).ToString());
Console.ReadLine();

 

 

it works for  pia.Extrapolate(-10);  (negativ direction)

 
 
 
Comments (2)Attachments (0)Issue Links (0)History

Christoph Rüegg  

02/04/2008 20:02:40 * CLOSING COMMENT *

Fixed in revision 409.
Regression unit test submitted.

 

 

Christoph Rüegg  

02/04/2008 19:58:16

Repro confirmed by cdr, created bug regression unit tests.

 

 

Issue ID IRID-119
Type Bug Bug
Priority High High
Severity Major Major
Visibility Everyone 
Assigned To Christoph Rüegg 
Reported By Christoph Rüegg 
Component Interpolation 
Fixed For Version [2008.4.14.425] 2008 April (2008.4.14.425) 
Affected Versions  
Risk Level No Risk 
Status Closed Closed   
Resolution Complete   
Start Date ? 
Due Date ? 
Votes 0  
 Print Friendly