You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Al Chou <ho...@yahoo.com> on 2004/02/16 15:23:42 UTC

[math] Re: cvs commit math/src/test/org/apache/commons/math/analysis InterpolatorTest.java

Phil,

I noticed that in testInterpolateLinearDegenerateThreeSegment() you didn't
insert a TODO comment when you deleted most of the body of the method (quoted
below)....


Al


--- psteitz@apache.org wrote:
> psteitz     2004/02/15 22:30:21
> 
>   Modified:    math/src/test/org/apache/commons/math/analysis
>                         InterpolatorTest.java RealSolverTest.java
>                math/src/test/org/apache/commons/math/stat
>                         DescriptiveStatisticsTest.java
>   Log:
>   Commented out sysouts.
>   
>   Revision  Changes    Path
>   1.11      +19 -52   
>
jakarta-commons/math/src/test/org/apache/commons/math/analysis/InterpolatorTest.java
>   
>   Index: InterpolatorTest.java
>   ===================================================================
>   RCS file:
>
/home/cvs/jakarta-commons/math/src/test/org/apache/commons/math/analysis/InterpolatorTest.java,v
>   retrieving revision 1.10
>   retrieving revision 1.11
>   diff -u -r1.10 -r1.11
>   --- InterpolatorTest.java	29 Jan 2004 16:48:49 -0000	1.10
>   +++ InterpolatorTest.java	16 Feb 2004 06:30:21 -0000	1.11
>   @@ -42,18 +42,19 @@
...
>        public void testInterpolateLinearDegenerateThreeSegment()
>            throws MathException {
>   -        System.out.println(" deg 3 seg");
>   +//       System.out.println(" deg 3 seg");
>            double xval[] = { 0.0, 0.5, 1.0, 1.5 };
>            double yval[] = { 0.0, 0.5, 1.0, 1.5 };
>            UnivariateRealInterpolator i = new SplineInterpolator();
>            UnivariateRealFunction f = i.interpolate(xval, yval);
>   -        double x;
>   -        x = 0.0;
>   -        System.out.println(
>   -            "x="
>   -                + x
>   -                + " y="
>   -                + f.value(x));
>   -
>   -        x = 0.5 - 1E-6;
>   -        System.out.println(
>   -            "x="
>   -                + x
>   -                + " y="
>   -                + f.value(x));
>   -
>   -        x = 0.5;
>   -        System.out.println(
>   -            "x="
>   -                + x
>   -                + " y="
>   -                + f.value(x));
>   -
>   -        x = 1 - 1E-6;
>   -        System.out.println(
>   -            "x="
>   -                + x
>   -                + " y="
>   -                + f.value(x));
>   -
>   -        x = 1;
>   -        System.out.println(
>   -            "x="
>   -                + x
>   -                + " y="
>   -                + f.value(x));
>   -
>   -        x = 1.5 - 1E-6;
>   -        System.out.println(
>   -            "x="
>   -                + x
>   -                + " y="
>   -                + f.value(x));
>    
>        }

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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


Re: [math] Re: cvs commit math/src/test/org/apache/commons/math/analysis InterpolatorTest.java

Posted by Al Chou <ho...@yahoo.com>.
--- Phil Steitz <ph...@steitz.com> wrote:
> Al Chou wrote:
> > Phil,
> > 
> > I noticed that in testInterpolateLinearDegenerateThreeSegment() you didn't
> > insert a TODO comment when you deleted most of the body of the method
> (quoted
> > below)....
> > 
> > 
> > Al
>
> 
> Oops!  I should have commented that block out, as I did the others and 
> insert a todo.  I will fix this evening.  Sorry.
> 
> Phil


Cool, thanks.


Al

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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


Re: [math] Re: cvs commit math/src/test/org/apache/commons/math/analysis InterpolatorTest.java

Posted by Phil Steitz <ph...@steitz.com>.
Al Chou wrote:
> Phil,
> 
> I noticed that in testInterpolateLinearDegenerateThreeSegment() you didn't
> insert a TODO comment when you deleted most of the body of the method (quoted
> below)....
> 
> 
> Al
> 

Oops!  I should have commented that block out, as I did the others and 
insert a todo.  I will fix this evening.  Sorry.

Phil

> 
> --- psteitz@apache.org wrote:
> 
>>psteitz     2004/02/15 22:30:21
>>
>>  Modified:    math/src/test/org/apache/commons/math/analysis
>>                        InterpolatorTest.java RealSolverTest.java
>>               math/src/test/org/apache/commons/math/stat
>>                        DescriptiveStatisticsTest.java
>>  Log:
>>  Commented out sysouts.
>>  
>>  Revision  Changes    Path
>>  1.11      +19 -52   
>>
> 
> jakarta-commons/math/src/test/org/apache/commons/math/analysis/InterpolatorTest.java
> 
>>  
>>  Index: InterpolatorTest.java
>>  ===================================================================
>>  RCS file:
>>
> 
> /home/cvs/jakarta-commons/math/src/test/org/apache/commons/math/analysis/InterpolatorTest.java,v
> 
>>  retrieving revision 1.10
>>  retrieving revision 1.11
>>  diff -u -r1.10 -r1.11
>>  --- InterpolatorTest.java	29 Jan 2004 16:48:49 -0000	1.10
>>  +++ InterpolatorTest.java	16 Feb 2004 06:30:21 -0000	1.11
>>  @@ -42,18 +42,19 @@
> 
> ...
> 
>>       public void testInterpolateLinearDegenerateThreeSegment()
>>           throws MathException {
>>  -        System.out.println(" deg 3 seg");
>>  +//       System.out.println(" deg 3 seg");
>>           double xval[] = { 0.0, 0.5, 1.0, 1.5 };
>>           double yval[] = { 0.0, 0.5, 1.0, 1.5 };
>>           UnivariateRealInterpolator i = new SplineInterpolator();
>>           UnivariateRealFunction f = i.interpolate(xval, yval);
>>  -        double x;
>>  -        x = 0.0;
>>  -        System.out.println(
>>  -            "x="
>>  -                + x
>>  -                + " y="
>>  -                + f.value(x));
>>  -
>>  -        x = 0.5 - 1E-6;
>>  -        System.out.println(
>>  -            "x="
>>  -                + x
>>  -                + " y="
>>  -                + f.value(x));
>>  -
>>  -        x = 0.5;
>>  -        System.out.println(
>>  -            "x="
>>  -                + x
>>  -                + " y="
>>  -                + f.value(x));
>>  -
>>  -        x = 1 - 1E-6;
>>  -        System.out.println(
>>  -            "x="
>>  -                + x
>>  -                + " y="
>>  -                + f.value(x));
>>  -
>>  -        x = 1;
>>  -        System.out.println(
>>  -            "x="
>>  -                + x
>>  -                + " y="
>>  -                + f.value(x));
>>  -
>>  -        x = 1.5 - 1E-6;
>>  -        System.out.println(
>>  -            "x="
>>  -                + x
>>  -                + " y="
>>  -                + f.value(x));
>>   
>>       }
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 




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