org.akutan.optimization.test
Class LMSolverTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.akutan.optimization.test.LMSolverTest
All Implemented Interfaces:
junit.framework.Test

public class LMSolverTest
extends junit.framework.TestCase


Field Summary
protected  LMSolver _lmSolver
           
 
Constructor Summary
LMSolverTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testConic()
          Tests minimizing a convex function
 void testCurveFit()
          Tests fitting a function with sin() using least squares
 void testLogFit()
          Tests fitting a function with ln() using least squares
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_lmSolver

protected LMSolver _lmSolver
Constructor Detail

LMSolverTest

public LMSolverTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testConic

public void testConic()
Tests minimizing a convex function


testCurveFit

public void testCurveFit()
Tests fitting a function with sin() using least squares


testLogFit

public void testLogFit()
Tests fitting a function with ln() using least squares