SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.uniroot
Class Uniroot.NoRootFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.numericalmethod.suanshu.analysis.uniroot.Uniroot.NoRootFoundException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Uniroot

public static class Uniroot.NoRootFoundException
extends java.lang.Exception

Exception thrown when it fails to find a root.

It may contain some information about the state before it throws the exceptions. It may be be useful in situations where some root is needed at the sacrifice of accuracy.

See Also:
Serialized Form

Field Summary
 double fx
          f(x)
 double x
          the best approximate root found so far
 
Constructor Summary
Uniroot.NoRootFoundException(double x, double fx)
          Construct a NoRootFoundException instance.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public final double x
the best approximate root found so far


fx

public final double fx
f(x)

Constructor Detail

Uniroot.NoRootFoundException

public Uniroot.NoRootFoundException(double x,
                                    double fx)
Construct a NoRootFoundException instance.

This object gives a snapshot/information of the uniroot algorithm before it throws the exception.

Parameters:
x - the best approximate root found before throwing exception
fx - the value f(x)

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.