Java Doc for UnivariateRealSolverImpl.java in  » Science » Apache-commons-math-1.1 » org » apache » commons » math » analysis » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Apache commons math 1.1 » org.apache.commons.math.analysis 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.math.analysis.UnivariateRealSolverImpl

All known Subclasses:   org.apache.commons.math.analysis.SecantSolver,  org.apache.commons.math.analysis.BisectionSolver,  org.apache.commons.math.analysis.NewtonSolver,  org.apache.commons.math.analysis.BrentSolver,
UnivariateRealSolverImpl
abstract public class UnivariateRealSolverImpl implements UnivariateRealSolver,Serializable(Code)
Provide a default implementation for several functions useful to generic solvers.
version:
   $Revision: 348888 $ $Date: 2005-11-24 23:21:25 -0700 (Thu, 24 Nov 2005) $


Field Summary
protected  doubleabsoluteAccuracy
     Maximum absolute error.
protected  doubledefaultAbsoluteAccuracy
     Default maximum absolute error.
protected  doubledefaultFunctionValueAccuracy
     Default maximum error of function.
protected  intdefaultMaximalIterationCount
     Default maximum number of iterations.
protected  doubledefaultRelativeAccuracy
     Default maximum relative error.
protected  UnivariateRealFunctionf
     The function to solve.
protected  doublefunctionValueAccuracy
     Maximum error of function.
protected  intiterationCount
     The last iteration count.
protected  intmaximalIterationCount
     Maximum number of iterations.
protected  doublerelativeAccuracy
     Maximum relative error.
protected  doubleresult
     The last computed root.
protected  booleanresultComputed
     Indicates where a root has been computed.

Constructor Summary
protected  UnivariateRealSolverImpl(UnivariateRealFunction f, int defaultMaximalIterationCount, double defaultAbsoluteAccuracy)
     Construct a solver with given iteration count and accuracy.

Method Summary
final protected  voidclearResult()
     Convenience function for implementations.
public  doublegetAbsoluteAccuracy()
     Get the actual absolute accuracy.
public  doublegetFunctionValueAccuracy()
     Get the actual function value accuracy.
public  intgetIterationCount()
     Access the last iteration count.
public  intgetMaximalIterationCount()
     Get the upper limit for the number of iterations.
public  doublegetRelativeAccuracy()
     Get the actual relative accuracy.
public  doublegetResult()
     Access the last computed root.
protected  booleanisBracketing(double lower, double upper, UnivariateRealFunction f)
     Returns true iff the function takes opposite signs at the endpoints.
protected  booleanisSequence(double start, double mid, double end)
    
public  voidresetAbsoluteAccuracy()
     Reset the absolute accuracy to the default.
public  voidresetFunctionValueAccuracy()
     Reset the actual function accuracy to the default.
public  voidresetMaximalIterationCount()
     Reset the upper limit for the number of iterations to the default.
public  voidresetRelativeAccuracy()
     Reset the relative accuracy to the default.
public  voidsetAbsoluteAccuracy(double accuracy)
     Set the absolute accuracy.
Parameters:
  accuracy - the accuracy.
throws:
  IllegalArgumentException - if the accuracy can't be achieved bythe solver or is otherwise deemed unreasonable.
public  voidsetFunctionValueAccuracy(double accuracy)
     Set the function value accuracy.
Parameters:
  accuracy - the accuracy.
throws:
  IllegalArgumentException - if the accuracy can't be achieved bythe solver or is otherwise deemed unreasonable.
public  voidsetMaximalIterationCount(int count)
     Set the upper limit for the number of iterations.
public  voidsetRelativeAccuracy(double accuracy)
     Set the relative accuracy.
Parameters:
  accuracy - the relative accuracy.
throws:
  IllegalArgumentException - if the accuracy can't be achieved bythe solver or is otherwise deemed unreasonable.
final protected  voidsetResult(double result, int iterationCount)
     Convenience function for implementations.
protected  voidverifyBracketing(double lower, double upper, UnivariateRealFunction f)
    
protected  voidverifyInterval(double lower, double upper)
    
protected  voidverifySequence(double lower, double initial, double upper)
    

Field Detail
absoluteAccuracy
protected double absoluteAccuracy(Code)
Maximum absolute error.



defaultAbsoluteAccuracy
protected double defaultAbsoluteAccuracy(Code)
Default maximum absolute error.



defaultFunctionValueAccuracy
protected double defaultFunctionValueAccuracy(Code)
Default maximum error of function.



defaultMaximalIterationCount
protected int defaultMaximalIterationCount(Code)
Default maximum number of iterations.



defaultRelativeAccuracy
protected double defaultRelativeAccuracy(Code)
Default maximum relative error.



f
protected UnivariateRealFunction f(Code)
The function to solve.



functionValueAccuracy
protected double functionValueAccuracy(Code)
Maximum error of function.



iterationCount
protected int iterationCount(Code)
The last iteration count.



maximalIterationCount
protected int maximalIterationCount(Code)
Maximum number of iterations.



relativeAccuracy
protected double relativeAccuracy(Code)
Maximum relative error.



result
protected double result(Code)
The last computed root.



resultComputed
protected boolean resultComputed(Code)
Indicates where a root has been computed.




Constructor Detail
UnivariateRealSolverImpl
protected UnivariateRealSolverImpl(UnivariateRealFunction f, int defaultMaximalIterationCount, double defaultAbsoluteAccuracy)(Code)
Construct a solver with given iteration count and accuracy.
Parameters:
  f - the function to solve.
Parameters:
  defaultAbsoluteAccuracy - maximum absolute error
Parameters:
  defaultMaximalIterationCount - maximum number of iterations
throws:
  IllegalArgumentException - if f is null or the defaultAbsoluteAccuracy is not valid




Method Detail
clearResult
final protected void clearResult()(Code)
Convenience function for implementations.



getAbsoluteAccuracy
public double getAbsoluteAccuracy()(Code)
Get the actual absolute accuracy. the accuracy



getFunctionValueAccuracy
public double getFunctionValueAccuracy()(Code)
Get the actual function value accuracy. the accuracy



getIterationCount
public int getIterationCount()(Code)
Access the last iteration count. the last iteration count
throws:
  IllegalStateException - if no root has been computed



getMaximalIterationCount
public int getMaximalIterationCount()(Code)
Get the upper limit for the number of iterations. the actual upper limit



getRelativeAccuracy
public double getRelativeAccuracy()(Code)
Get the actual relative accuracy. the accuracy



getResult
public double getResult()(Code)
Access the last computed root. the last computed root
throws:
  IllegalStateException - if no root has been computed



isBracketing
protected boolean isBracketing(double lower, double upper, UnivariateRealFunction f) throws FunctionEvaluationException(Code)
Returns true iff the function takes opposite signs at the endpoints.
Parameters:
  lower - the lower endpoint
Parameters:
  upper - the upper endpoint
Parameters:
  f - the function true if f(lower) * f(upper) < 0
throws:
  FunctionEvaluationException - if an error occurs evaluating the function at the endpoints



isSequence
protected boolean isSequence(double start, double mid, double end)(Code)
Returns true if the arguments form a (strictly) increasing sequence
Parameters:
  start - first number
Parameters:
  mid - second number
Parameters:
  end - third number true if the arguments form an increasing sequence



resetAbsoluteAccuracy
public void resetAbsoluteAccuracy()(Code)
Reset the absolute accuracy to the default.



resetFunctionValueAccuracy
public void resetFunctionValueAccuracy()(Code)
Reset the actual function accuracy to the default.



resetMaximalIterationCount
public void resetMaximalIterationCount()(Code)
Reset the upper limit for the number of iterations to the default.



resetRelativeAccuracy
public void resetRelativeAccuracy()(Code)
Reset the relative accuracy to the default.



setAbsoluteAccuracy
public void setAbsoluteAccuracy(double accuracy)(Code)
Set the absolute accuracy.
Parameters:
  accuracy - the accuracy.
throws:
  IllegalArgumentException - if the accuracy can't be achieved bythe solver or is otherwise deemed unreasonable.



setFunctionValueAccuracy
public void setFunctionValueAccuracy(double accuracy)(Code)
Set the function value accuracy.
Parameters:
  accuracy - the accuracy.
throws:
  IllegalArgumentException - if the accuracy can't be achieved bythe solver or is otherwise deemed unreasonable.



setMaximalIterationCount
public void setMaximalIterationCount(int count)(Code)
Set the upper limit for the number of iterations.
Parameters:
  count - maximum number of iterations



setRelativeAccuracy
public void setRelativeAccuracy(double accuracy)(Code)
Set the relative accuracy.
Parameters:
  accuracy - the relative accuracy.
throws:
  IllegalArgumentException - if the accuracy can't be achieved bythe solver or is otherwise deemed unreasonable.



setResult
final protected void setResult(double result, int iterationCount)(Code)
Convenience function for implementations.
Parameters:
  result - the result to set
Parameters:
  iterationCount - the iteration count to set



verifyBracketing
protected void verifyBracketing(double lower, double upper, UnivariateRealFunction f) throws FunctionEvaluationException(Code)
Verifies that the endpoints specify an interval and the function takes opposite signs at the enpoints, throws IllegalArgumentException if not
Parameters:
  lower - lower endpoint
Parameters:
  upper - upper endpoint
Parameters:
  f - function
throws:
  IllegalArgumentException -
throws:
  FunctionEvaluationException - if an error occurs evaluating the function at the endpoints



verifyInterval
protected void verifyInterval(double lower, double upper)(Code)
Verifies that the endpoints specify an interval, throws IllegalArgumentException if not
Parameters:
  lower - lower endpoint
Parameters:
  upper - upper endpoint
throws:
  IllegalArgumentException -



verifySequence
protected void verifySequence(double lower, double initial, double upper)(Code)
Verifies that lower < initial < upper throws IllegalArgumentException if not
Parameters:
  lower - lower endpoint
Parameters:
  initial - initial value
Parameters:
  upper - upper endpoint
throws:
  IllegalArgumentException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.