All Packages Class Hierarchy This Package Previous Next Index
Class CH.epfl.lcvm.mccc.PowellHybridNative
java.lang.Object
|
+----CH.epfl.lcvm.mccc.PowellHybridNative
- public class PowellHybridNative
- extends Object
- implements RootFinder
A interface which calles a Powell Hybrid root finder.
This root finder is defined as a native method and the
source code for it can be found in hybrd.f.
-
PowellHybridNative(Function)
- Creates a PowellHybrid root finder for the given function
-
findRoot(Matrix)
- Returns a root of the function given the inputed initial guess
-
main(String[])
- Exercise the class by trying the various functions
-
setTolerance(double)
- Sets the tolerance for the newton solver
PowellHybridNative
public PowellHybridNative(Function func)
- Creates a PowellHybrid root finder for the given function
- Parameters:
- func - The function for which to find roots
findRoot
public Matrix findRoot(Matrix value) throws MCCCException
- Returns a root of the function given the inputed initial guess
- Parameters:
- value - Initial guess to the root finder
- Returns:
- the value of the root
- Throws: MCCCException
- In case the method doesn't
converge it throws this exception
setTolerance
public void setTolerance(double tolerance)
- Sets the tolerance for the newton solver
- Parameters:
- tolerance - The new tolerance
main
public static void main(String argv[]) throws MCCCException
- Exercise the class by trying the various functions
- Throws: MCCCException
- Thrown when numerics fail
All Packages Class Hierarchy This Package Previous Next Index