The information about why and where the evolution should stop. More...
#include <StopInformation.h>
Public Member Functions | |
StopInformation (double stop_age=Core::Inf, double stop_precision=Core::NaN, StoppingConditionType stop_reason=NO_STOP, bool is_crossing=false, bool crossed_zero=false, size_t stop_condition_index=0, short deriv_sign_at_crossing=0) | |
Create an object with the information about why we evolution should be stopped. More... | |
StopInformation (const StopInformation &orig) | |
Copy orig to *this. More... | |
double | stop_age () const |
The target stopping age in Gyr. More... | |
double & | stop_age () |
The target stopping age in Gyr. More... | |
double | stop_condition_precision () const |
The precision up to which the reason to stop is satisfied. More... | |
double & | stop_condition_precision () |
The precision up to which the reason to stop is satisfied. More... | |
StoppingConditionType | stop_reason () const |
The reason for stopping. More... | |
StoppingConditionType & | stop_reason () |
The reason for stopping. More... | |
bool | is_crossing () const |
Is the reason for stopping that a condition actually crossed zero? More... | |
bool & | is_crossing () |
Is the reason for stopping that a condition actually crossed zero? More... | |
size_t | stop_condition_index () const |
The index of the condition which caused us to stop. More... | |
size_t & | stop_condition_index () |
The index of the condition which caused us to stop. More... | |
bool | crossed_zero () const |
Did we stop after the stopping condition crossed zero (always false for extrema). More... | |
bool & | crossed_zero () |
Did we stop after the stopping condition crossed zero (always false for extrema). More... | |
StopInformation & | operator= (const StopInformation &rhs) |
Copy rhs to *this. More... | |
short | deriv_sign_at_crossing () const |
The sign of the derivative at zero-crossing. More... | |
short & | deriv_sign_at_crossing () |
The sign of the derivative at zero-crossing. More... | |
Private Attributes | |
double | __stop_age |
The target stopping age in Gyr. More... | |
double | __stop_condition_precision |
The precision up to which the reason to stop is satisfied. More... | |
StoppingConditionType | __stop_reason |
The reason for stopping. More... | |
bool | __is_crossing |
Is the reason for stopping that a condition actually crossed zero? More... | |
bool | __crossed_zero |
Did the last step actually cross zero? More... | |
size_t | __stop_condition_index |
The index of the condition which caused us to stop. More... | |
short | __deriv_sign_at_crossing |
The sign of the derivative at zero-crossing. More... | |
The information about why and where the evolution should stop.
Definition at line 19 of file StopInformation.h.
|
inline |
Create an object with the information about why we evolution should be stopped.
stop_age | The target stopping age in Gyr. |
stop_precision | The precision up to which the reason to stop is satisfied. |
stop_reason | The reason for stopping. |
is_crossing | Is the reason for stopping that a condition actually crossed zero? |
crossed_zero | Did we stop after a zero-crossing. |
stop_condition_index | The index of the condition which caused us to stop. |
deriv_sign_at_crossing | The sign of the derivative of the condition at zero-crossing (undefined for extrema. |
Definition at line 51 of file StopInformation.h.
|
inline |
Copy orig to *this.
Definition at line 84 of file StopInformation.h.
|
inline |
Did we stop after the stopping condition crossed zero (always false for extrema).
Definition at line 127 of file StopInformation.h.
|
inline |
Did we stop after the stopping condition crossed zero (always false for extrema).
Definition at line 131 of file StopInformation.h.
|
inline |
The sign of the derivative at zero-crossing.
Definition at line 147 of file StopInformation.h.
|
inline |
The sign of the derivative at zero-crossing.
Definition at line 155 of file StopInformation.h.
|
inline |
Is the reason for stopping that a condition actually crossed zero?
Definition at line 115 of file StopInformation.h.
|
inline |
Is the reason for stopping that a condition actually crossed zero?
Definition at line 117 of file StopInformation.h.
|
inline |
Copy rhs to *this.
Definition at line 134 of file StopInformation.h.
|
inline |
The target stopping age in Gyr.
Definition at line 95 of file StopInformation.h.
|
inline |
The target stopping age in Gyr.
Definition at line 98 of file StopInformation.h.
|
inline |
The index of the condition which caused us to stop.
Definition at line 120 of file StopInformation.h.
|
inline |
The index of the condition which caused us to stop.
Definition at line 123 of file StopInformation.h.
|
inline |
The precision up to which the reason to stop is satisfied.
Definition at line 101 of file StopInformation.h.
|
inline |
The precision up to which the reason to stop is satisfied.
Definition at line 105 of file StopInformation.h.
|
inline |
The reason for stopping.
Definition at line 109 of file StopInformation.h.
|
inline |
The reason for stopping.
Definition at line 112 of file StopInformation.h.
|
private |
Did the last step actually cross zero?
Definition at line 38 of file StopInformation.h.
|
private |
The sign of the derivative at zero-crossing.
Definition at line 47 of file StopInformation.h.
|
private |
Is the reason for stopping that a condition actually crossed zero?
Definition at line 38 of file StopInformation.h.
|
private |
The target stopping age in Gyr.
Definition at line 22 of file StopInformation.h.
|
private |
The index of the condition which caused us to stop.
Definition at line 44 of file StopInformation.h.
|
private |
The precision up to which the reason to stop is satisfied.
If we are stopping because some stopping condition is actually satisfied, this is the value of the condition. If we are stopping because of an extremum this is the difference between the estimated value of the condition at the extremum and the value at the closest step.
Definition at line 22 of file StopInformation.h.
|
private |
The reason for stopping.
Definition at line 34 of file StopInformation.h.