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 booleancontainsRoot()Indicate whether the root is present in the output, i.e., if the finder has successfully completed.java.lang.StringdisplayString()Return a string form of the root finder outputExecutionInitializationOutputgetEIOP()Retrieve the Execution Initialization OutputintgetNumIterations()Return The number of iterations takenintgetNumOFCalcs()Retrieve the number of objective function calculations neededintgetNumOFDerivCalcs()Retrieve the number of objective function derivative calculations neededdoublegetRoot()Return the rootbooleanincrIterations()Increment the number of IterationsbooleanincrOFCalcs()Increment the number of Objective Function evaluationsbooleanincrOFDerivCalcs()Increment the number of Objective Function Derivative evaluationsbooleansetRoot(double dblRoot)Set the Rootdoubletime()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
-