Package org.drip.function.r1tor1solver
Class FixedPointFinderOutput
java.lang.Object
org.drip.function.r1tor1solver.FixedPointFinderOutput
public class FixedPointFinderOutput
extends java.lang.Object
FixedPointFinderOutput holds the result of the fixed point search.
FixedPointFinderOutput contains the following fields:
- Whether the search completed successfully
- The number of iterations, the number of objective function base/derivative calculations, and the time taken for the search
- The output from initialization
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd To Rd Function Analysis
- Package = Built-in R1 To R1 Solvers
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description FixedPointFinderOutput(ExecutionInitializationOutput eiop)
FixedPointFinderOutput constructor -
Method Summary
Modifier and Type Method Description boolean
containsRoot()
Indicate whether the root is present in the output, i.e., if the finder has successfully completed.java.lang.String
displayString()
Return a string form of the root finder outputExecutionInitializationOutput
getEIOP()
Retrieve the Execution Initialization Outputint
getNumIterations()
Return The number of iterations takenint
getNumOFCalcs()
Retrieve the number of objective function calculations neededint
getNumOFDerivCalcs()
Retrieve the number of objective function derivative calculations neededdouble
getRoot()
Return the rootboolean
incrIterations()
Increment the number of Iterationsboolean
incrOFCalcs()
Increment the number of Objective Function evaluationsboolean
incrOFDerivCalcs()
Increment the number of Objective Function Derivative evaluationsboolean
setRoot(double dblRoot)
Set the Rootdouble
time()
Return the time elapsed for the the full root finding operationMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FixedPointFinderOutput
FixedPointFinderOutput constructor- Parameters:
eiop
- Execution Initialization Output 1D- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
-
Method Details
-
setRoot
public boolean setRoot(double dblRoot)Set the Root- Parameters:
dblRoot
- Root- Returns:
- TRUE - Successfully set
-
containsRoot
public boolean containsRoot()Indicate whether the root is present in the output, i.e., if the finder has successfully completed.- Returns:
- TRUE - Root exists in the output
-
time
public double time()Return the time elapsed for the the full root finding operation- Returns:
- Time taken for root finding
-
getRoot
public double getRoot()Return the root- Returns:
- Root
-
incrIterations
public boolean incrIterations()Increment the number of Iterations- Returns:
- TRUE - Successfully incremented
-
getNumIterations
public int getNumIterations()Return The number of iterations taken- Returns:
- Number of iterations taken
-
incrOFCalcs
public boolean incrOFCalcs()Increment the number of Objective Function evaluations- Returns:
- TRUE - Successfully incremented
-
getNumOFCalcs
public int getNumOFCalcs()Retrieve the number of objective function calculations needed- Returns:
- Number of objective function calculations needed
-
incrOFDerivCalcs
public boolean incrOFDerivCalcs()Increment the number of Objective Function Derivative evaluations- Returns:
- TRUE - Successfully incremented
-
getNumOFDerivCalcs
public int getNumOFDerivCalcs()Retrieve the number of objective function derivative calculations needed- Returns:
- Number of objective function derivative calculations needed
-
getEIOP
Retrieve the Execution Initialization Output- Returns:
- Execution Initialization Output
-
displayString
public java.lang.String displayString()Return a string form of the root finder output- Returns:
- String form of the root finder output
-